chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shared: procfs_file_alloca: handle pid==0
[elogind.git]
/
src
/
fsck
/
fsck.c
diff --git
a/src/fsck/fsck.c
b/src/fsck/fsck.c
index 4f1aa22f9df00e054db83f3f2140645f66625488..9170768cec957147a9c79390a42115344a9f3030 100644
(file)
--- a/
src/fsck/fsck.c
+++ b/
src/fsck/fsck.c
@@
-73,7
+73,8
@@
static void start_target(const char *target) {
}
static int parse_proc_cmdline(void) {
- char *line, *w, *state;
+ _cleanup_free_ char *line = NULL;
+ char *w, *state;
size_t l;
int r;
@@
-104,7
+105,6
@@
static int parse_proc_cmdline(void) {
#endif
}
- free(line);
return 0;
}