aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2011-07-16 21:05:43 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-07-19 20:07:20 +0200
commit44fb151c12e53672002670eea9d6475f27f6b22c (patch)
treeb5b5ef620dfcdc3d41f11a5e1e70c435049e6d85 /openbsc
parent1c33d4c00d780fccede8216a22c702c399c67f21 (diff)
osmo-bsc: Compare char * with NULL instead of 0
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_main.c3
1 files changed, 2 insertions, 1 deletions
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);