aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraglitke <aglitke@aglitke.localdomain>2006-08-28 09:59:41 -0500
committeraglitke <aglitke@aglitke.localdomain>2006-08-28 09:59:41 -0500
commitf0cf528961038b2afa5ceb9813189cc85cb78a58 (patch)
tree918aedf05a90a56df0e08d70f4f223169a198d3c
parent9eab1b47d9734e3d0b645ad0443142f8c23f2745 (diff)
downloadlibhugetlbfs-f0cf528961038b2afa5ceb9813189cc85cb78a58.tar.gz
hugeutils: only call hugetlbfs_find_path() once
Rather than call the same function twice, use the cached value. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
-rw-r--r--hugeutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugeutils.c b/hugeutils.c
index 9249628..922d477 100644
--- a/hugeutils.c
+++ b/hugeutils.c
@@ -230,7 +230,7 @@ int hugetlbfs_unlinked_fd(void)
name[sizeof(name)-1] = '\0';
- strcpy(name, hugetlbfs_find_path());
+ strcpy(name, path);
strncat(name, "/libhugetlbfs.tmp.XXXXXX", sizeof(name)-1);
/* FIXME: deal with overflows */