summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.9.0-fsck.patch
blob: 5bf4bd275ca7bdef8ef8c87b79112850487a78d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- busybox-1.9.0/e2fsprogs/fsck.c	Fri Dec 21 22:00:31 2007
+++ busybox-1.9.0-fsck/e2fsprogs/fsck.c	Sat Feb  2 18:55:22 2008
@@ -665,6 +665,12 @@
 	for (i = num_args+1; i < argc; i++)
 		free(argv[i]);
 
+	/* No pid, so don't record an instance */
+	if (pid < 0) {
+		free(inst);
+		return;
+	}
+
 	inst->pid = pid;
 	inst->prog = argv[0];
 	inst->type = xstrdup(type);