diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/readlinkat.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/readlinkat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/readlinkat.c b/sysdeps/unix/sysv/linux/readlinkat.c index 1e9a9b649f..55abff143d 100644 --- a/sysdeps/unix/sysv/linux/readlinkat.c +++ b/sysdeps/unix/sysv/linux/readlinkat.c @@ -59,7 +59,7 @@ readlinkat (fd, path, buf, len) if (fd != AT_FDCWD && path[0] != '/') { size_t pathlen = strlen (path); - if (__builtin_expect (filelen == 0, 0)) + if (__builtin_expect (pathlen == 0, 0)) { __set_errno (ENOENT); return -1; |