aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2013-12-14 20:21:45 +1000
committerSteve Bennett <steveb@workware.net.au>2013-12-21 01:56:58 +1000
commite955ef676552ab07cd8504e5ab09b1820fe51293 (patch)
tree182ea269c60f9cd356bf3f0da449f3bf1bb8685b /jim.c
parente34b39c934f77942d589f8032859d9524550278e (diff)
downloadjimtcl-e955ef676552ab07cd8504e5ab09b1820fe51293.zip
jimtcl-e955ef676552ab07cd8504e5ab09b1820fe51293.tar.gz
jimtcl-e955ef676552ab07cd8504e5ab09b1820fe51293.tar.bz2
Use Jim_StrDup() instead of strdup() internally
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index b28bcd8..d64e5e5 100644
--- a/jim.c
+++ b/jim.c
@@ -1077,7 +1077,7 @@ static unsigned int JimStringCopyHTHashFunction(const void *key)
static void *JimStringCopyHTDup(void *privdata, const void *key)
{
- return strdup(key);
+ return Jim_StrDup(key);
}
static int JimStringCopyHTKeyCompare(void *privdata, const void *key1, const void *key2)