From 2674268aef30e617d9e9728af6c19f8fad420422 Mon Sep 17 00:00:00 2001 From: Jan S Date: Tue, 4 Nov 2014 16:31:06 +0100 Subject: [PATCH] fix NULL check --- x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x.c b/x.c index 1ba156a..62ecde9 100644 --- a/x.c +++ b/x.c @@ -330,7 +330,7 @@ static cairo_surface_t *get_icon_surface(char *icon_path) static colored_layout *r_init_shared(cairo_t *c, notification *n) { colored_layout *cl = malloc(sizeof(colored_layout)); - if(cl = NULL) { + if(cl == NULL) { die("Unable to allocate memory", EXIT_FAILURE); } cl->l = pango_cairo_create_layout(c);