Don't use uninitialized values

This commit is contained in:
Miroslav Lichvar
2011-06-13 18:17:33 +02:00
parent 934d4e04b5
commit a5f63180fc
2 changed files with 3 additions and 2 deletions

View File

@@ -1082,12 +1082,11 @@ process_cmd_delete(CMD_Request *msg, char *line)
fprintf(stderr, "Could not get address for hostname\n");
ok = 0;
} else {
UTI_IPHostToNetwork(&address, &msg->data.del_source.ip_addr);
ok = 1;
}
}
UTI_IPHostToNetwork(&address, &msg->data.del_source.ip_addr);
return ok;
}