X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fcommand-line.c;h=23ed53fb48f78c02634da1285ad5bf1a38410476;hb=d295e8e97acae13552a5b220d3fbcff8201064a2;hp=17344c36aaf9efbf8dc8c592fbf1ba8278fd3a93;hpb=90a249dc93ccabd398b64092121b07e5af2d8c2d;p=sliver-openvswitch.git diff --git a/lib/command-line.c b/lib/command-line.c index 17344c36a..23ed53fb4 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); }