aboutsummaryrefslogtreecommitdiffstats
path: root/nick.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2014-02-28 23:14:11 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2014-02-28 23:14:11 +0000
commit2e815e5627b54696d4a81cddd8162fa0414b118f (patch)
tree50be645a1aa2ebe4e6acc1ce980b08b465173ba9 /nick.c
parent6ae1056f266bb09750de640903a45b6806477665 (diff)
parentcb90dc9fbd1e2a76ea382376ca69248398f70719 (diff)
Merging a bunch of patches from Trac, collected by dx.
Diffstat (limited to 'nick.c')
-rw-r--r--nick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nick.c b/nick.c
index 54e180da..dd8b0ddf 100644
--- a/nick.c
+++ b/nick.c
@@ -209,7 +209,7 @@ char *nick_gen( bee_user_t *bu )
part = asc = g_convert_with_fallback( part, -1, "ASCII//TRANSLIT",
"UTF-8", "", NULL, NULL, NULL );
- if( chop && ( s = strchr( part, chop ) ) )
+ if( part && chop && ( s = strchr( part, chop ) ) )
len = MIN( len, s - part );
if( part )