aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-09-18 22:34:24 +0200
committerHarald Welte <laforge@osmocom.org>2020-09-18 23:14:36 +0200
commit92ad029e1a95304f46d6fac59f19f92c944094c7 (patch)
tree93bae1b0503ed9ae820f091de45767e6a2ac2c29
parent5bef2cc4bd58db7f270124e8d68964b4f1b4a3dc (diff)
ns2: Use NULL and not '0' when returning a NULL-Pointer
-rw-r--r--src/gb/gprs_ns2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 21a45a13..57a08d1d 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -216,7 +216,7 @@ char *gprs_ns2_ll_str_buf(char *buf, size_t buf_len, struct gprs_ns2_vc *nsvc)
struct osmo_sockaddr_str remote_str;
if (!buf_len)
- return 0;
+ return NULL;
switch (nsvc->ll) {
case GPRS_NS_LL_UDP: