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,7 +185,7 @@ static void notify_func(struct ts *ts, int sync_msg, char *msg_id, char *msg_tex
185 185
 		}
186 186
 	}
187 187
 
188
-	if (ts->notify->notifications) {
188
+	if (ts->notify && ts->notify->notifications) {
189 189
 		struct npriv *np = calloc(1, sizeof(struct npriv));
190 190
 		if (np) {
191 191
 			if (np_local_inited) {

Loading…
Cancel
Save