Fix issue detected by static analysis tool
[platform/core/uifw/capi-ui-sticker.git] / server / stickerd_data_manager.c
index 2bb0012..9e6455c 100644 (file)
@@ -874,7 +874,7 @@ int stickerd_insert_sticker_info_by_json(GVariant *parameters, GVariant **reply_
                 goto free_memory;
 
             sticker_info->uri = _get_string_from_object(info_object, "uri");
-            if (!sticker_info->uri)
+            if (!sticker_info->uri || sticker_info->uri[0] != '\0')
                 goto free_memory;
 
             if (sticker_info->type == 1) {