summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imlib.c b/src/imlib.c
index d83cc08..090159c 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -59,7 +59,7 @@ int xinerama_screen;
int num_xinerama_screens;
#endif /* HAVE_LIBXINERAMA */
-int childpid;
+int childpid = 0;
static char *feh_http_load_image(char *url);
static char *feh_magick_load_image(char *filename);
@@ -327,6 +327,7 @@ static char *feh_magick_load_image(char *filename)
*/
waitpid(-1, &status, 0);
}
+ childpid = 0;
}
return sfn;