From f4d5f73b289d8379f6dbcacd7acadbd91322064c Mon Sep 17 00:00:00 2001 From: Jesper Larsen Date: Fri, 4 Jan 2013 13:03:58 +0100 Subject: [PATCH] replace: Fix compilation of rep_mkstemp Commit 1fbc185 removed the variable 'p'. Use the equivalent variable 'template' instead. --- lib/replace/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace/replace.c b/lib/replace/replace.c index f37d69f..8f1315a 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -405,7 +405,7 @@ int rep_mkstemp(char *template) mktemp(template); if (template[0] == 0) return -1; - return open(p, O_CREAT|O_EXCL|O_RDWR, 0600); + return open(template, O_CREAT|O_EXCL|O_RDWR, 0600); } #endif -- 1.7.9.5