Skip to content

Commit d8e2b84

Browse files
committed
remove the unnecessary condition part
1 parent 8e7c469 commit d8e2b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/interbase/interbase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ void _php_ibase_error(void) /* {{{ */
512512

513513
IBG(sql_code) = isc_sqlcode(IB_STATUS);
514514

515-
while ((s - IBG(errmsg)) < MAX_ERRMSG - (IBASE_MSGSIZE + 2) && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &statusp)) {
515+
while ((s - IBG(errmsg)) < MAX_ERRMSG && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &statusp)) {
516516
strcat(IBG(errmsg), " ");
517517
s = IBG(errmsg) + strlen(IBG(errmsg));
518518
}

0 commit comments

Comments
 (0)