Navigation Menu

Skip to content

Commit

Permalink
windows: use NULL for empty HANDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent b3d3632 commit 38eb336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/io.c
Expand Up @@ -1297,7 +1297,7 @@ grn_mmap(grn_ctx *ctx, HANDLE *fmo, fileinfo *fi, off_t offset, size_t length)
void *res;
if (!fi) {
if (fmo) {
*fmo = (HANDLE)0;
*fmo = NULL;
}
return GRN_GCALLOC(length);
}
Expand Down

0 comments on commit 38eb336

Please sign in to comment.