aboutsummaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-map-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/bluetooth-map-api.c')
-rw-r--r--binding/bluetooth-map-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c
index 3d75bf4..e09b120 100644
--- a/binding/bluetooth-map-api.c
+++ b/binding/bluetooth-map-api.c
@@ -471,7 +471,7 @@ static void list_msgs(afb_req_t request)
gchar *session;
folder = afb_req_value(request, "folder");
- if (!folder) {
+ if (!folder || !strlen(folder)) {
afb_req_fail_f(request, "failed", "no folder value passed");
return;
}