Kaydet (Commit) 103d1f44 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr (automatic rewrite; Mac-specific code)

Change-Id: Ib52f7fb846886dd970ddd51475f890cd81c8f2b5
üst b6f6cf85
...@@ -54,7 +54,7 @@ int ...@@ -54,7 +54,7 @@ int
} }
} }
optopt = c = argv[optind][sp]; optopt = c = argv[optind][sp];
if (c == ':' || (cp = strchr(opts, c)) == 0) if (c == ':' || (cp = strchr(opts, c)) == NULL)
{ {
ERR(": illegal option -- ", c); ERR(": illegal option -- ", c);
if (argv[optind][++sp] == '\0') if (argv[optind][++sp] == '\0')
...@@ -86,7 +86,7 @@ int ...@@ -86,7 +86,7 @@ int
sp = 1; sp = 1;
optind++; optind++;
} }
optarg = 0; optarg = NULL;
} }
return c; return c;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment