Skip to content
Browse files

don't return NULL from sl_realpath

  • Loading branch information...
1 parent da3a5d6 commit 1de064f3f1fc64acbb94ba3f6720eabb2c51b898 @charliesome charliesome committed Oct 8, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 platform/posix.c
View
4 platform/posix.c
@@ -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);

0 comments on commit 1de064f

Please sign in to comment.
Something went wrong with that request. Please try again.