Skip to content

Commit

Permalink
don't return NULL from sl_realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Oct 8, 2012
1 parent da3a5d6 commit 1de064f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions platform/posix.c
Expand Up @@ -21,9 +21,7 @@ sl_realpath(sl_vm_t* vm, char* path)
}
#ifdef PATH_MAX
cpath = sl_alloc_buffer(vm->arena, PATH_MAX + 1);
if(!realpath(path, cpath)) {
return NULL;
}
(void)realpath(path, cpath);
return cpath;
#else
cpath = realpath(path, NULL);
Expand Down

0 comments on commit 1de064f

Please sign in to comment.