diff options
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } /** |