osmo-bsc: Compare char * with NULL instead of 0

This commit is contained in:
Daniel Willmann 2011-07-16 21:05:43 +02:00 committed by Holger Hans Peter Freyther
parent 1c33d4c00d
commit 44fb151c12
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,8 @@ int verify_net_loc(struct ctrl_cmd *cmd, const char *value, void *data)
lonstr = strtok_r(NULL, ",", &saveptr);
heightstr = strtok_r(NULL, "\0", &saveptr);
if ((agestr == 0) || (latstr == 0) || (lonstr == 0) || (heightstr == 0))
if ((agestr == NULL) || (latstr == NULL) ||
(lonstr == NULL) || (heightstr == NULL))
ret = 1;
age = atol(agestr);