summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.c b/net.c
index 686f6e6..b05c9fc 100644
--- a/net.c
+++ b/net.c
@@ -160,8 +160,10 @@ void ipc2ril_reg_state_resp(struct ipc_net_regist *netinfo, char *response[15])
asprintf(&response[0], "%d", reg_state);
asprintf(&response[1], "%x", netinfo->lac);
asprintf(&response[2], "%x", netinfo->cid);
- if(act)
+ if(act > 0)
asprintf(&response[3], "%d", act);
+ else
+ response[3] = NULL;
}
/**