Skip to content

Commit 2943526

Browse files
committed
win32/sendmail.c/TSendMail(): use bool type instead of int
1 parent 77d306e commit 2943526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win32/sendmail.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ PHPAPI int TSendMail(const char *host, int *error, char **error_message,
219219
if (INI_STR("sendmail_from")) {
220220
RPath = estrdup(INI_STR("sendmail_from"));
221221
} else if (headers_lc) {
222-
int found = 0;
222+
bool found = false;
223223
const char *lookup = ZSTR_VAL(headers_lc);
224224

225225
while (lookup) {
@@ -236,7 +236,7 @@ PHPAPI int TSendMail(const char *host, int *error, char **error_message,
236236
}
237237
}
238238

239-
found = 1;
239+
found = true;
240240

241241
/* Real offset is memaddress from the original headers + difference of
242242
* string found in the lowercase headers + 5 characters to jump over

0 commit comments

Comments
 (0)