diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-08 14:04:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-08 14:04:37 +0100 |
commit | 08476b7788530ff5ecb6eb379afc0a5998824f84 (patch) | |
tree | 15a4d221dcc584596fc309835e5138e4ab776fd6 /setup_native/scripts/source/getuid.c | |
parent | 9763b55eb946cf425220d26dab91bf220890b180 (diff) |
-Werror,-Wtautological-pointer-compare
Change-Id: I55db1220e234b92f5d0a3794f416154495da8b69
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 |