summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-01-18 11:45:41 +0100
committerunknown <serg@serg.mylan>2005-01-18 11:45:41 +0100
commit3671fe1f72e02393d2a42c4defead8b5633c4394 (patch)
tree3d1d787bd1981035f2c27e8829b44ef5b571dcca /ndb
parentec0daa744fe6b1141e4d8815b574c2a1e38366e8 (diff)
parentf003895df9f562018ba47e5f7af2eae03d937368 (diff)
downloadmariadb-git-3671fe1f72e02393d2a42c4defead8b5633c4394.tar.gz
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/common/util/strdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ndb/src/common/util/strdup.c b/ndb/src/common/util/strdup.c
index afe2306427e..d8f4d99bd28 100644
--- a/ndb/src/common/util/strdup.c
+++ b/ndb/src/common/util/strdup.c
@@ -21,8 +21,8 @@
char *
strdup(const char *s){
void *p2;
- p2 = malloc(strlen(s)+1);
- strcpy(p2, s);
+ if ((p2 = malloc(strlen(s)+1)))
+ strcpy(p2, s);
return p2;
}
#endif