From: Herb Lewis Date: Wed, 6 Apr 2005 23:50:48 +0000 (+0000) Subject: r6230: don't know how this ever worked! the compiler complained we X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~4976 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6117dd72de1f2a8e158d1a5f2b2991ef93deb72;p=thirdparty%2Fsamba.git r6230: don't know how this ever worked! the compiler complained we were comparing an integer to a pointer and it was right. --- diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c index 0b4552e1f5d..7cbae30ced0 100644 --- a/source/lib/util_unistr.c +++ b/source/lib/util_unistr.c @@ -113,7 +113,7 @@ static int check_dos_char_slowly(smb_ucs2_t c) if (len1 == 0) return 0; len2 = convert_string(CH_DOS, CH_UCS2, buf, len1, &c2, 2,False); if (len2 != 2) return 0; - return (c == c2); + return (c == *c2); }