Rather than call the same function twice, use the cached value.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>

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 */
 

-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to