summaryrefslogtreecommitdiff
path: root/ext/SDBM_File
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-04-03 18:10:12 +0100
committerNicholas Clark <nick@ccl4.org>2009-04-03 18:28:08 +0100
commit8c31914eb8d5464fe868315a1038f657f5586790 (patch)
tree8ac493b7012a5ae0781e25051898692957e392ed /ext/SDBM_File
parenteb53357261107ec40e8c517666330fc71276b6fb (diff)
downloadperl-8c31914eb8d5464fe868315a1038f657f5586790.tar.gz
Don't assign needlessly to dirname. (which seems to make clang happier.)
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r--ext/SDBM_File/sdbm/sdbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c
index cc6d0e9b39..97b8b4a43d 100644
--- a/ext/SDBM_File/sdbm/sdbm.c
+++ b/ext/SDBM_File/sdbm/sdbm.c
@@ -91,7 +91,7 @@ sdbm_open(register char *file, register int flags, register int mode)
/*
* build the file names
*/
- dirname = strcat(strcpy(dirname, file), DIRFEXT);
+ strcat(strcpy(dirname, file), DIRFEXT);
pagname = strcpy(dirname + strlen(dirname) + 1, file);
pagname = strcat(pagname, PAGFEXT);