Browse Source

Do not crash in notifications if ident is not set

Georgi Chorbadzhiyski 6 years ago
parent
commit
b1eaec9c11
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      notify.c

+ 1
- 1
notify.c View File

185
 		}
185
 		}
186
 	}
186
 	}
187
 
187
 
188
-	if (ts->notify->notifications) {
188
+	if (ts->notify && ts->notify->notifications) {
189
 		struct npriv *np = calloc(1, sizeof(struct npriv));
189
 		struct npriv *np = calloc(1, sizeof(struct npriv));
190
 		if (np) {
190
 		if (np) {
191
 			if (np_local_inited) {
191
 			if (np_local_inited) {

Loading…
Cancel
Save