diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-10 19:40:06 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-10 19:40:06 +0000 |
commit | ba09292f5503c7885d76d934da6ef6d1c97dee11 (patch) | |
tree | 53d9f1871948663421899880d35ea1252812a7e4 /src/fe-common | |
parent | 9398746e617c2c39558c1cf1e5a01a0a2efcc2c5 (diff) | |
download | irssi-ba09292f5503c7885d76d934da6ef6d1c97dee11.zip |
crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2566 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-queries.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index c7e83bfe..40df4ec9 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -327,7 +327,8 @@ static void sig_message_private(SERVER_REC *server, const char *msg, query = privmsg_get_query(server, nick, FALSE, MSGLEVEL_MSGS); /* reset the query's last_unread_msg timestamp */ - query->last_unread_msg = time(NULL); + if (query != NULL) + query->last_unread_msg = time(NULL); } static void read_settings(void) |