summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index f70c023e39..409adff665 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -385,7 +385,7 @@ static int flash_io (int mode)
{
int fd, fdr, rc, otherdev, len, resid;
erase_info_t erase;
- char *data;
+ char *data = NULL;
if ((fd = open (DEVNAME (curdev), mode)) < 0) {
fprintf (stderr,