Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
irssi
f1f6d8f9000f0d346f196223d301ee5e72f5685f.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File f1f6d8f9000f0d346f196223d301ee5e72f5685f.patch of Package irssi
From f1f6d8f9000f0d346f196223d301ee5e72f5685f Mon Sep 17 00:00:00 2001 From: coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> Date: Sun, 21 Mar 2010 20:23:34 +0000 Subject: [PATCH] Fix crash when checking for fuzzy nick match when not on the channel. Reported by Aurelien Delaitre (SATE 2009) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@5126 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/nicklist.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/nicklist.c b/src/core/nicklist.c index 9f67f20..c38df6d 100644 --- a/src/core/nicklist.c +++ b/src/core/nicklist.c @@ -575,9 +575,13 @@ int nick_match_msg(CHANNEL_REC *channel, const char *msg, const char *nick) if (fullmatch) return TRUE; /* matched without fuzzyness */ - /* matched with some fuzzyness .. check if there's an exact match - for some other nick in the same channel. */ - return nick_nfind(channel, msgstart, (int) (msg-msgstart)) == NULL; + if (channel != NULL) { + /* matched with some fuzzyness .. check if there's an exact match + for some other nick in the same channel. */ + return nick_nfind(channel, msgstart, (int) (msg-msgstart)) == NULL; + } else { + return TRUE; + } } void nicklist_init(void) -- 1.7.0.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor