diff --git a/vhook/imlib2.c b/vhook/imlib2.c index 98ccaf8c4b..3c548366cd 100644 --- a/vhook/imlib2.c +++ b/vhook/imlib2.c @@ -258,9 +258,9 @@ int Configure(void **ctxp, int argc, char *argv[]) f = fopen(rgbtxt, "r"); else { - f = fopen("/usr/share/X11/rgb.txt", "r"); - if (!f) - f = fopen("/usr/lib/X11/rgb.txt", "r"); + f = fopen("/usr/share/X11/rgb.txt", "r"); + if (!f) + f = fopen("/usr/lib/X11/rgb.txt", "r"); } if (!f) { fprintf(stderr, "Failed to find RGB color names file\n");