From 44fb151c12e53672002670eea9d6475f27f6b22c Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Sat, 16 Jul 2011 21:05:43 +0200 Subject: osmo-bsc: Compare char * with NULL instead of 0 --- openbsc/src/osmo-bsc/osmo_bsc_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 2a4ed1aa7..3a2306c94 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -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); -- cgit v1.2.3