Alexandre Julliard : libport: Don't clear the buffer on failure in mkstemps .

Alexandre Julliard julliard at winehq.org
Thu May 26 10:56:25 CDT 2011


Module: wine
Branch: master
Commit: 57765b8c307d49a909cb563ea88141c69ff226e2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=57765b8c307d49a909cb563ea88141c69ff226e2

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 26 12:21:02 2011 +0200

libport: Don't clear the buffer on failure in mkstemps.

---

 libs/port/mkstemps.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libs/port/mkstemps.c b/libs/port/mkstemps.c
index 1a091a7..3ca71e8 100644
--- a/libs/port/mkstemps.c
+++ b/libs/port/mkstemps.c
@@ -133,7 +133,5 @@ mkstemps (
       value += 7777;
     }
 
-  /* We return the null string if we can't find a unique file name.  */
-  template[0] = '\0';
   return -1;
 }




More information about the wine-cvs mailing list