Commit 1c9186fe authored by Alec Cox's avatar Alec Cox
Browse files

added early exit condition as per Ferada's suggestion

parent 392a72ce
Loading
Loading
Loading
Loading
+73 −72
Original line number Diff line number Diff line
@@ -252,7 +252,9 @@ static void feh_wm_set_bg_maxed(Pixmap pmap, Imlib_Image im, int use_filelist,
void feh_wm_gen_bg_script(char* fil, int centered, int scaled, int filled, int use_filelist) {
	char * home = getenv("HOME");

	if (home) {
	if (!home)
		return;

	FILE *fp;
	int fd;
	char *path;
@@ -333,7 +335,6 @@ void feh_wm_gen_bg_script(char* fil, int centered, int scaled, int filled, int u
	}
	free(path);
}
}

void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
		int filled, int desktop, int use_filelist)