httpd: make byte ranges which start at 0 work too. Closes 4766
[oweals/busybox.git] / networking / ifupdown.c
index 9c2cad231077c3dfaab932f6578d90fd59cbd3b3..73da26085c4058ba51cca1690f3c625f816a16ef 100644 (file)
@@ -1312,8 +1312,8 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
                        llist_t *iface_state = find_iface_state(state_list, iface);
 
                        if (cmds == iface_up && !any_failures) {
-                               char * const newiface = xasprintf("%s=%s", iface, liface);
-                               if (iface_state == NULL) {
+                               char *newiface = xasprintf("%s=%s", iface, liface);
+                               if (!iface_state) {
                                        llist_add_to_end(&state_list, newiface);
                                } else {
                                        free(iface_state->data);