projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)
[qemu]
/
readline.c
diff --git
a/readline.c
b/readline.c
index
7bf9a5e
..
8572841
100644
(file)
--- a/
readline.c
+++ b/
readline.c
@@
-307,8
+307,6
@@
static void term_completion(void)
nb_completions = 0;
cmdline = qemu_malloc(term_cmd_buf_index + 1);
- if (!cmdline)
- return;
memcpy(cmdline, term_cmd_buf, term_cmd_buf_index);
cmdline[term_cmd_buf_index] = '\0';
readline_find_completion(cmdline);