chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang: fix numerous little issues found with clang-analyzer
[elogind.git]
/
src
/
path.c
diff --git
a/src/path.c
b/src/path.c
index 91de56f34ce44b5eff881a9428eedff1df9a20dd..2f1e0aea632631bc59bf11701cd64f3fcfde60e7 100644
(file)
--- a/
src/path.c
+++ b/
src/path.c
@@
-145,12
+145,10
@@
static int path_load(Unit *u) {
static void path_dump(Unit *u, FILE *f, const char *prefix) {
Path *p = PATH(u);
static void path_dump(Unit *u, FILE *f, const char *prefix) {
Path *p = PATH(u);
- const char *prefix2;
- char *p2;
PathSpec *s;
PathSpec *s;
-
p2 = strappend(prefix, "\t"
);
-
prefix2 = p2 ? p2 : prefix
;
+
assert(p
);
+
assert(f)
;
fprintf(f,
"%sPath State: %s\n"
fprintf(f,
"%sPath State: %s\n"
@@
-164,8
+162,6
@@
static void path_dump(Unit *u, FILE *f, const char *prefix) {
prefix,
path_type_to_string(s->type),
s->path);
prefix,
path_type_to_string(s->type),
s->path);
-
- free(p2);
}
static void path_unwatch_one(Path *p, PathSpec *s) {
}
static void path_unwatch_one(Path *p, PathSpec *s) {