summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-09-09 20:43:42 +0000
committerunknown <tomas@poseidon.(none)>2004-09-09 20:43:42 +0000
commite2252a49f7393076107ee5e228be79660e7faecb (patch)
treef8ed0aeea5f77ecceaab873383bdfc553c9702a8 /ndb
parent759644bce983c16603fa17b083bad49ebb9b3ebb (diff)
downloadmariadb-git-e2252a49f7393076107ee5e228be79660e7faecb.tar.gz
fixed compile error
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/common/mgmcommon/NdbConfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/common/mgmcommon/NdbConfig.c b/ndb/src/common/mgmcommon/NdbConfig.c
index 016e06ca2b1..6895a461cd6 100644
--- a/ndb/src/common/mgmcommon/NdbConfig.c
+++ b/ndb/src/common/mgmcommon/NdbConfig.c
@@ -57,13 +57,14 @@ static
char *get_prefix_buf(int len, int node_id)
{
char tmp_buf[sizeof("ndb_pid#########")+1];
+ char *buf;
if (node_id > 0)
snprintf(tmp_buf, sizeof(tmp_buf), "ndb_%u", node_id);
else
snprintf(tmp_buf, sizeof(tmp_buf), "ndb_pid%u", getpid());
tmp_buf[sizeof(tmp_buf)-1]= 0;
- char *buf= NdbConfig_AllocHomePath(len+strlen(tmp_buf));
+ buf= NdbConfig_AllocHomePath(len+strlen(tmp_buf));
strcat(buf, tmp_buf);
return buf;
}