]> granicus.if.org Git - php/commitdiff
remove the unnecessary condition part
authorAnatol Belski <ab@php.net>
Tue, 12 Jan 2016 09:22:10 +0000 (10:22 +0100)
committerAnatol Belski <ab@php.net>
Tue, 12 Jan 2016 09:22:10 +0000 (10:22 +0100)
ext/interbase/interbase.c

index 3dfdac326ff73edebf264265c1de6564db63a8f7..b4c253838e7e60428ae6946280702671c17eb014 100644 (file)
@@ -512,7 +512,7 @@ void _php_ibase_error(void) /* {{{ */
 
        IBG(sql_code) = isc_sqlcode(IB_STATUS);
 
-       while ((s - IBG(errmsg)) < MAX_ERRMSG - (IBASE_MSGSIZE + 2) && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &statusp)) {
+       while ((s - IBG(errmsg)) < MAX_ERRMSG && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &statusp)) {
                strcat(IBG(errmsg), " ");
                s = IBG(errmsg) + strlen(IBG(errmsg));
        }