diff options
Diffstat (limited to 'libgammu/phone/obex/mobex.c')
-rw-r--r-- | libgammu/phone/obex/mobex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgammu/phone/obex/mobex.c b/libgammu/phone/obex/mobex.c index 81dcd4f..fe3b1ed 100644 --- a/libgammu/phone/obex/mobex.c +++ b/libgammu/phone/obex/mobex.c @@ -282,6 +282,9 @@ GSM_Error MOBEX_GetNextEntry(GSM_StateMachine *s, const char *path, const gboole if (*pos + 4 > *size) { return ERR_EMPTY; } + if (*data == NULL) { + return ERR_BUG; + } /* Return values */ *entry = *data + *pos + 4; |