X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fgrabclient.c;h=438197e80da1ff1eb2b4db6dcbb9d8e5a47c7cae;hp=54396c765616bdd51f0e84f84178c803c2539d84;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/utils/grabclient.c b/utils/grabclient.c index 54396c76..438197e8 100644 --- a/utils/grabclient.c +++ b/utils/grabclient.c @@ -582,13 +582,13 @@ pipe_cb (XtPointer closure, int *source, XtInputId *id) Window r; int x, y; unsigned int w, h, bbw, d; - struct stat *st; + struct stat st; /* Log something to syslog so we can tell the difference between corrupted images and broken symlinks. */ if (!*buf) fprintf (stderr, "%s: no image filename found\n", progname); - else if (! stat (buf, st)) + else if (! stat (buf, &st)) fprintf (stderr, "%s: %s: unparsable\n", progname, buf); else { @@ -730,11 +730,9 @@ load_random_image_1 (Screen *screen, Window window, Drawable drawable, done = True; } - if (! done) { + if (! done) draw_colorbars (screen, xgwa.visual, drawable, xgwa.colormap, 0, 0, xgwa.width, xgwa.height); - done = True; - } if (callback) { /* If we got here, we loaded synchronously even though they wanted async.