Skip to content

Commit 015ec48

Browse files
committed
Clarify return value meaning
1 parent f7071e6 commit 015ec48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,7 @@ static int seek_cb(void *arg, curl_off_t offset, int origin) /* {{{ */
21492149
}
21502150
}
21512151
res = php_stream_seek(cb_arg->stream, offset, origin);
2152-
return !res ? CURL_SEEKFUNC_OK : CURL_SEEKFUNC_CANTSEEK;
2152+
return res == SUCCESS ? CURL_SEEKFUNC_OK : CURL_SEEKFUNC_CANTSEEK;
21532153
}
21542154
/* }}} */
21552155

0 commit comments

Comments
 (0)