Skip to content
Snippets Groups Projects
Commit be545eaf authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.

parent 790259ab
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ const char *ostr;
place = EMSG;
return -1;
}
if (place[1] && *++place == '-')
if (place[1] && *++place == '-' && place[1] == '\0')
{ /* found "--" */
++optind;
place = EMSG;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment