]> granicus.if.org Git - postgresql/commitdiff
a fix from Eiji Tokuya.
authorHiroshi Inoue <inoue@tpf.co.jp>
Wed, 21 Mar 2001 09:35:25 +0000 (09:35 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Wed, 21 Mar 2001 09:35:25 +0000 (09:35 +0000)
src/interfaces/odbc/multibyte.c

index d365618fc788f28a530a0ad5d4bf353761f2f1ff..316ca40efbd02f3d4e03613876145dd2c7c890a1 100644 (file)
@@ -15,7 +15,7 @@ int multibyte_status ;                /* Multibyte Odds and ends character. */
 unsigned char *multibyte_strchr(unsigned char *s,unsigned char c)
 {
        int mb_st = 0 ,i = 0;
-       while (!(mb_st == 0 && s[i] == c || s[i] == 0))
+       while (!(mb_st == 0 && (s[i] == c || s[i] == 0)))
        {
                if (s[i] == 0)
                        return (0);