mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
osmo-bsc: Compare char * with NULL instead of 0
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
1c33d4c00d
commit
44fb151c12
@@ -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);
|
||||
|
Reference in New Issue
Block a user