database: Handle UNKNOWN-APP!
[apps/agl-service-data-persistence.git] / ll-database-binding / src / ll-database-binding.c
index ae0003b..c0fa939 100644 (file)
@@ -150,6 +150,10 @@ static int get_key(struct afb_req req, DBT *key)
 
        /* get the appid */
        appid = afb_req_get_application_id(req);
+#if 1
+       if (!appid)
+               appid = strdup("#UNKNOWN-APP#");
+#endif
        if (!appid)
        {
                afb_req_fail(req, "bad-context", NULL);