]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/getopt.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / getopt.c
index 3f52c6f06bc9797546cbabd16a210d0436361764..71799c9b6d5a8a201c3cc20a357f9453881bc194 100644 (file)
@@ -619,9 +619,8 @@ int long_only;
 
        if (longopts != NULL
            && (argv[optind][1] == '-'
-               || (long_only
-                   && (argv[optind][2]
-                       || !my_index(optstring, argv[optind][1]))))) {
+               || (long_only && (argv[optind][2]
+                                 || !my_index(optstring, argv[optind][1]))))) {
                char *nameend;
                const struct option *p;
                const struct option *pfound = NULL;