Skip to content
This repository
Browse code

don't return NULL from sl_realpath

  • Loading branch information...
commit 1de064f3f1fc64acbb94ba3f6720eabb2c51b898 1 parent da3a5d6
Charlie Somerville charliesome authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 platform/posix.c
4 platform/posix.c
@@ -21,9 +21,7 @@ sl_realpath(sl_vm_t* vm, char* path)
21 21 }
22 22 #ifdef PATH_MAX
23 23 cpath = sl_alloc_buffer(vm->arena, PATH_MAX + 1);
24   - if(!realpath(path, cpath)) {
25   - return NULL;
26   - }
  24 + (void)realpath(path, cpath);
27 25 return cpath;
28 26 #else
29 27 cpath = realpath(path, NULL);

0 comments on commit 1de064f

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