summaryrefslogtreecommitdiff
path: root/client/completion_hash.cc
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mylan>2005-01-08 21:25:31 +0100
committerunknown <serg@sergbook.mylan>2005-01-08 21:25:31 +0100
commit4c8d52aa80ce2a2131783bc2df5b02f21baa1c96 (patch)
tree2b9317949d667f9113933b7fd154a10693b5c05c /client/completion_hash.cc
parent9ad1b390fcf12ec7aa7b9fad157d6e0a61045b40 (diff)
downloadmariadb-git-4c8d52aa80ce2a2131783bc2df5b02f21baa1c96.tar.gz
few harmless warnings from automated code-checking tools fixed
client/mysql.cc: few harmless warnings from automated code-checking tools fixed cleanup
Diffstat (limited to 'client/completion_hash.cc')
-rw-r--r--client/completion_hash.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/completion_hash.cc b/client/completion_hash.cc
index 536e7f9373a..7a3b363c93c 100644
--- a/client/completion_hash.cc
+++ b/client/completion_hash.cc
@@ -79,7 +79,8 @@ int completion_hash_update(HashTable *ht, char *arKey, uint nKeyLength,
if (!memcmp(p->arKey, arKey, nKeyLength)) {
entry *n;
- n = (entry *) alloc_root(&ht->mem_root,sizeof(entry));
+ if (!(n = (entry *) alloc_root(&ht->mem_root,sizeof(entry))))
+ return FAILURE;
n->pNext = p->pData;
n->str = str;
p->pData = n;