diff options
| author | Lothar Waßmann <[email protected]> | 2017-06-08 14:04:03 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-06-12 08:38:42 -0400 |
| commit | 1aca4d5ae9f3c6af018105f89984752cdbdba121 (patch) | |
| tree | 7da1a5bfc6bbbf60d09604488e4aad120fb258b9 /cmd | |
| parent | d2d20d9925ff57982fc0c50d4ec490323c2074f6 (diff) | |
cmd: mtdparts: fix uninitialized variable warning
commit 06a040a31bcf ("cmd: mtdparts: fix null pointer dereference in parse_mtdparts")
removed the initialization of a pointer variable, which is
subsequently used in a debug() call. This produces an uninitialized
variable warning, when compiling with DEBUG defined.
Signed-off-by: Lothar Waßmann <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mtdparts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 112bf1f3e3c..683c48bdad1 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -1556,7 +1556,7 @@ static int parse_mtdparts(const char *const mtdparts) int err = 1; char tmp_parts[MTDPARTS_MAXLEN]; - debug("\n---parse_mtdparts---\nmtdparts = %s\n\n", p); + debug("\n---parse_mtdparts---\nmtdparts = %s\n\n", mtdparts); /* delete all devices and partitions */ if (mtd_devices_init() != 0) { |
