Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Stop further execution if we can't construct the pixbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
cybre committed Aug 7, 2019
1 parent 453b29d commit 9070090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/redshiftgtk-radial-slider.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ redshiftgtk_radial_slider_load_pixbuf (GdkPixbuf **dest_pixbuf,

image = gdk_pixbuf_new_from_resource (path, &error);

if (error)
if (error) {
printf ("redshiftgtk_radial_slider_load_pixbuf : %s\n",
error->message);
return;
}

*dest_pixbuf = gdk_pixbuf_copy (image);
g_clear_object (&image);
Expand Down

0 comments on commit 9070090

Please sign in to comment.