Skip to content

Commit

Permalink
out_s3: Align return value
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed May 21, 2024
1 parent 89f336b commit 3b5419a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/out_s3/s3_win32_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ static inline int flb_pclose(FILE *stream) {
}

static inline int flb_mkstemp(char *template) {
return _mktemp_s(template, strlen(template));
if (_mktemp_s(template, strlen(template) + 1) != 0) {
return -1;
}

return 0;
}

#endif
Expand Down

0 comments on commit 3b5419a

Please sign in to comment.