diff --git a/src/bin/albumart.c b/src/bin/albumart.c index 78a9cc9..8aeec5b 100644 --- a/src/bin/albumart.c +++ b/src/bin/albumart.c @@ -133,12 +133,15 @@ _cb_http_complete(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) if (p) { p = strstr(p, "src=\"http"); - p += 5; - pe = strchr(p, '"'); - if (pe) + if (p) { - eina_strbuf_append_length(sb, p, pe - p); - ok = EINA_TRUE; + p += 5; + pe = strchr(p, '"'); + if (pe) + { + eina_strbuf_append_length(sb, p, pe - p); + ok = EINA_TRUE; + } } } if (!ok)