diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-22 02:18:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-22 02:19:16 +0100 |
commit | bd40a2d830265cdd36eb19576bdbe8e41dd527ee (patch) | |
tree | 65be055210412b9b3b961a153e7dc131ee7c653e /src/tmpfiles.c | |
parent | 0b1724894fb85aa1c07b2619e9269cfafd736956 (diff) |
clang: fix some issues found with clang-analyzersystemd/v17
Diffstat (limited to 'src/tmpfiles.c')
-rw-r--r-- | src/tmpfiles.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tmpfiles.c b/src/tmpfiles.c index 984eaf0de1..d242dac7dc 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -474,7 +474,7 @@ static void item_free(Item *i) { static int parse_line(const char *fname, unsigned line, const char *buffer, const char *prefix) { Item *i; char *mode = NULL, *user = NULL, *group = NULL, *age = NULL; - int r, n; + int r; assert(fname); assert(line >= 1); @@ -485,19 +485,19 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, cons return -ENOMEM; } - if ((n = sscanf(buffer, - "%c " - "%ms " - "%ms " - "%ms " - "%ms " - "%ms", - &i->type, - &i->path, - &mode, - &user, - &group, - &age)) < 2) { + if (sscanf(buffer, + "%c " + "%ms " + "%ms " + "%ms " + "%ms " + "%ms", + &i->type, + &i->path, + &mode, + &user, + &group, + &age) < 2) { log_error("[%s:%u] Syntax error.", fname, line); r = -EIO; goto finish; |