Commit 2cb5caea authored by bgruber's avatar bgruber

don't even try to decode if data is null

parent d6d08d12
Pipeline #178170 passed with stage
in 15 minutes and 3 seconds
......@@ -261,6 +261,10 @@ load_image (const char *data)
g_autofree char *decoded = NULL;
gsize length = 0;
if (data == NULL) {
return gr_image_array_new ();
}
decoded = (char *)g_base64_decode (data, &length);
dir = g_build_filename (get_user_data_dir (), "images", NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment