librb: fix rb_path_to_self() dlinfo variant

This commit is contained in:
William Pitcock 2016-03-30 14:32:53 -05:00
parent a5ab106298
commit a20190d5ea

View file

@ -175,6 +175,7 @@ rb_path_to_self(void)
if (map == NULL) if (map == NULL)
return NULL; return NULL;
realpath(map->l_name, path_buf); realpath(map->l_name, path_buf);
return path_buf;
#elif defined(__APPLE__) #elif defined(__APPLE__)
char tmp_path[4096]; char tmp_path[4096];
uint32_t pathlen = 4096; uint32_t pathlen = 4096;