summaryrefslogtreecommitdiff
path: root/src/notification_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notification_list.c')
-rwxr-xr-xsrc/notification_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notification_list.c b/src/notification_list.c
index bd80f40..078dc29 100755
--- a/src/notification_list.c
+++ b/src/notification_list.c
@@ -254,7 +254,7 @@ EXPORT_API int notification_get_detail_list(const char *pkgname,
notification_list_h get_list = NULL;
int ret = 0;
- if (list == NULL)
+ if (list == NULL || pkgname == NULL)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
ret =