]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove empty brace from prior
authorRoy Marples <roy@marples.name>
Mon, 9 Mar 2020 10:34:14 +0000 (10:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 9 Mar 2020 10:34:14 +0000 (10:34 +0000)
src/if-options.c

index afc6c07a6e8aa71e859ac0307aa340bf2915a44f..46df50ca0f981b0b41862e2a12fa33f27b38a018 100644 (file)
@@ -2047,7 +2047,7 @@ err_sla:
                        logerr("realm_len");
                        goto invalid_token;
                }
-               if (s) {
+               if (s != 0) {
                        token->realm_len = (size_t)s;
                        token->realm = malloc(token->realm_len);
                        if (token->realm == NULL) {
@@ -2056,7 +2056,6 @@ err_sla:
                        }
                        parse_string((char *)token->realm, token->realm_len,
                            arg);
-               } else {
                }
                arg = fp;
                fp = strend(arg);