summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-01-20 16:39:28 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-01-20 16:39:28 +0100
commit411788d5de59e47151b68f8a6596bab38e7f1d48 (patch)
treeb5fe36c66282bbfdc09d85d21c75b9d222eb8468 /client
parent27c2433b9dce5240a530512b0c6bd071bc74cab0 (diff)
downloadmariadb-git-411788d5de59e47151b68f8a6596bab38e7f1d48.tar.gz
Correctly cast the result of malloc.
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 84447f15ffc..9a977e2a521 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -9677,7 +9677,7 @@ void dynstr_append_sorted(DYNAMIC_STRING* ds, DYNAMIC_STRING *ds_input)
static int setenv(const char *name, const char *value, int overwrite)
{
size_t buflen= strlen(name) + strlen(value) + 2;
- char *envvar= malloc(buflen);
+ char *envvar= (char *)malloc(buflen);
if(!envvar)
return ENOMEM;
strcpy(envvar, name);