aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem-at.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-22 12:33:19 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-22 12:33:19 +0200
commit5978258d85a148307a8ddb1c4dedccd81aa5871a (patch)
treee8f74d33717732583b2ee6ec547e316d5e84721a /src/mm-base-modem-at.c
parentc5f3198a9fdcd22a342be496b7ba6751ea1b53d2 (diff)
base-modem-at: handle NULL responses from the serial parsing in sequences
Diffstat (limited to 'src/mm-base-modem-at.c')
-rw-r--r--src/mm-base-modem-at.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-base-modem-at.c b/src/mm-base-modem-at.c
index a67cf966..2dc32681 100644
--- a/src/mm-base-modem-at.c
+++ b/src/mm-base-modem-at.c
@@ -176,7 +176,7 @@ at_sequence_parse_response (MMAtSerialPort *port,
ctx->self,
ctx->response_processor_context,
ctx->current->command,
- response->str,
+ response ? response->str : NULL,
next->command ? FALSE : TRUE, /* Last command in sequence? */
error,
&result,