summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorserg@serg.mylan <>2006-01-03 17:54:54 +0100
committerserg@serg.mylan <>2006-01-03 17:54:54 +0100
commit14f94dc0cad1419e74047956c059c1cf9c3e7a2c (patch)
tree2c671047ec7c4161ca04e53f5f54c6797f81afd4 /cmd-line-utils
parent04cff0d055fd63d7f0a9395478171e735799f30b (diff)
downloadmariadb-git-14f94dc0cad1419e74047956c059c1cf9c3e7a2c.tar.gz
many warnings (practically safe but annoying) corrected
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/libedit/history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-line-utils/libedit/history.c b/cmd-line-utils/libedit/history.c
index 1da6a864181..c0fa7cc717d 100644
--- a/cmd-line-utils/libedit/history.c
+++ b/cmd-line-utils/libedit/history.c
@@ -676,8 +676,8 @@ history_load(History *h, const char *fname)
(void) strunvis(ptr, line);
line[sz] = c;
if (HENTER(h, &ev, ptr) == -1) {
- h_free((ptr_t)ptr);
- return -1;
+ i = -1;
+ goto oomem;
}
}
oomem: