diff options
Diffstat (limited to 'obexd/plugins/pbap.c')
-rw-r--r-- | obexd/plugins/pbap.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c index 68417a0b..78926644 100644 --- a/obexd/plugins/pbap.c +++ b/obexd/plugins/pbap.c @@ -828,18 +828,17 @@ static void *vobject_list_open(const char *name, int oflag, mode_t mode, int ret; void *request; + if (name == NULL) { + ret = -EBADR; + goto fail; + } + DBG("name %s context %p valid %d", name, context, pbap->cache.valid); if (oflag != O_RDONLY) { ret = -EPERM; goto fail; } - - if (name == NULL) { - ret = -EBADR; - goto fail; - } - #ifdef __TIZEN_PATCH__ if (strcmp(name, "/telecom/mch") == 0) pbap->params->required_missedcall_call_header = TRUE; |