X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcommand-line.c;h=23ed53fb48f78c02634da1285ad5bf1a38410476;hb=4e6ca956f56b7a7f7284a4cd8788873ba57b229c;hp=17344c36aaf9efbf8dc8c592fbf1ba8278fd3a93;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=openvswitch diff --git a/lib/command-line.c b/lib/command-line.c index 17344c36..23ed53fb 100644 --- a/lib/command-line.c +++ b/lib/command-line.c @@ -29,7 +29,7 @@ long_options_to_short_options(const struct option options[]) { char short_options[UCHAR_MAX * 3 + 1]; char *p = short_options; - + for (; options->name; options++) { const struct option *o = options; if (o->flag == NULL && o->val > 0 && o->val <= UCHAR_MAX) { @@ -43,7 +43,7 @@ long_options_to_short_options(const struct option options[]) } } *p = '\0'; - + return xstrdup(short_options); }