diff options
-rw-r--r-- | common/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c index 12f2715ef5..3e5440e816 100644 --- a/common/command.c +++ b/common/command.c @@ -74,7 +74,7 @@ U_BOOT_CMD_END int do_readline (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - char *buf = xmalloc(CONFIG_CBSIZE); + char *buf = xzalloc(CONFIG_CBSIZE); if (argc < 3) { printf ("Usage:\n%s\n", cmdtp->usage); |