aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2014-04-20 18:13:28 +0100
committerPhillip Lougher <phillip@squashfs.org.uk>2014-04-20 18:13:28 +0100
commitf3b814ae01506dfe07edb9773559529c26758757 (patch)
treeed68a7b6d1681eda5d4744ff42955ba8cd129436
parent7d7f2da27d5c39de89c5fae61eb611666f297c03 (diff)
downloadsquashfs-tools-f3b814ae01506dfe07edb9773559529c26758757.tar.gz
pseudo: add_pseudo(), fix use of freed variable
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r--squashfs-tools/pseudo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/squashfs-tools/pseudo.c b/squashfs-tools/pseudo.c
index 382537a..84dddd9 100644
--- a/squashfs-tools/pseudo.c
+++ b/squashfs-tools/pseudo.c
@@ -157,7 +157,8 @@ struct pseudo *add_pseudo(struct pseudo *pseudo, struct pseudo_dev *pseudo_dev,
target, alltarget);
else {
ERROR_START("%s already exists as a "
- "non directory.", targname);
+ "non directory.",
+ pseudo->name[i].name);
ERROR_EXIT(". Ignoring %s!\n",
alltarget);
}
@@ -186,7 +187,7 @@ struct pseudo *add_pseudo(struct pseudo *pseudo, struct pseudo_dev *pseudo_dev,
} else {
ERROR_START("%s already exists as a "
"different pseudo definition.",
- targname);
+ pseudo->name[i].name);
ERROR_EXIT(" Ignoring %s!\n",
alltarget);
}