diff --git a/src/wallpaper.c b/src/wallpaper.c
index 222afddea37f3c6fedac173c073e20752ec9bc84..2a4743f28d516df75c77207fe789b38ee8f77b8b 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -296,8 +296,6 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
 		Pixmap pmap_d1, pmap_d2;
 
 		char *home;
-		char *bgfill = NULL;
-		bgfill = opt.image_bg == IMAGE_BG_WHITE ?  "--image-bg white" : "--image-bg black" ;
 
 		/* local display to set closedownmode on */
 		Display *disp2;