summaryrefslogtreecommitdiffstats
path: root/utils/resources.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/resources.c')
-rw-r--r--utils/resources.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/resources.c b/utils/resources.c
index 7b54adc..1e35023 100644
--- a/utils/resources.c
+++ b/utils/resources.c
@@ -43,6 +43,7 @@ get_string_resource (Display *dpy, char *res_name, char *res_class)
XrmValue value;
char *type;
char full_name [1024], full_class [1024];
+ if (!dpy) return 0;
strcpy (full_name, progname);
strcat (full_name, ".");
strcat (full_name, res_name);