summaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 92f1ab2..0acafba 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -427,7 +427,7 @@ int main(int argc, char ** argv) {
pixbuf = retrieve_artwork(music_dir, uri);
- if (scale > 0) {
+ if (pixbuf != NULL && scale > 0) {
int x, y;
x = gdk_pixbuf_get_width(pixbuf);