X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpath%2Fpath.c;h=2f0148f074b12167a0ddefe0dcfdae9d797a52a3;hp=65016cda3e18a18521fe7b3214bec4dc9c1e63a2;hb=f647962d64e844689f3e2acfce6102fc47e76df2;hpb=e80733be33e52d8ab2f1ae845326d39c600f5612 diff --git a/src/path/path.c b/src/path/path.c index 65016cda3..2f0148f07 100644 --- a/src/path/path.c +++ b/src/path/path.c @@ -108,10 +108,8 @@ static int print_home(const char *n) { _cleanup_free_ char *p = NULL; r = sd_path_home(i, arg_suffix, &p); - if (r < 0) { - log_error_errno(r, "Failed to query %s: %m", n); - return r; - } + if (r < 0) + return log_error_errno(r, "Failed to query %s: %m", n); printf("%s\n", p); return 0;