about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/draw.c b/draw.c
index 3fbac5b..362d025 100644
--- a/draw.c
+++ b/draw.c
@@ -149,7 +149,8 @@ getcolor(const char *colstr) {
 	Colormap cmap = DefaultColormap(dpy, screen);
 	XColor color;
 
-	XAllocNamedColor(dpy, cmap, colstr, &color, &color);
+	if(!XAllocNamedColor(dpy, cmap, colstr, &color, &color))
+		eprint("error, cannot allocate color '%s'\n", colstr);
 	return color.pixel;
 }
 
revision' href='/akkartik/mu/blame/cpp/.traces/get?h=hlt&id=94a833c7b3e7c7b206cd3deead8e16f7992526dc'>^
6f5d7864 ^
916ae8f5 ^

6f5d7864 ^
ab9e2eae ^
916ae8f5 ^
6f5d7864 ^
916ae8f5 ^
916ae8f5 ^

ab9e2eae ^


916ae8f5 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24