diff options
Diffstat (limited to 'miscutils/readlink.c')
-rw-r--r-- | miscutils/readlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/readlink.c b/miscutils/readlink.c index 2266495..c46ebd1 100644 --- a/miscutils/readlink.c +++ b/miscutils/readlink.c @@ -37,6 +37,8 @@ int readlink_main(int argc, char **argv) show_usage(); buf = xreadlink(argv[1]); + if (!buf) + return EXIT_FAILURE; puts(buf); #ifdef BB_FEATURE_CLEAN_UP free(buf); |