diff options
Diffstat (limited to 'setup_native/scripts/source/getuid.c')
-rw-r--r-- | setup_native/scripts/source/getuid.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/setup_native/scripts/source/getuid.c b/setup_native/scripts/source/getuid.c index d3660f4c7f7b..9a9f826fa3ab 100644 --- a/setup_native/scripts/source/getuid.c +++ b/setup_native/scripts/source/getuid.c @@ -137,11 +137,9 @@ int __lxstat64(int n, const char *path, struct stat64 *buf) p_lstat = (int (*)(int n, const char *path, struct stat64 *buf)) dlsym (RTLD_NEXT, "__lxstat64"); ret = (*p_lstat)(n, path, buf); - if (buf != NULL) - { - buf->st_uid = 0; - buf->st_gid = 0; - } + assert(buf != NULL); + buf->st_uid = 0; + buf->st_gid = 0; return ret; } #endif |