public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70979ec
)
tmpfile: return NULL not randomness on error
author
Alan Cox
<alan@linux.intel.com>
Mon, 11 May 2015 20:35:34 +0000
(21:35 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 11 May 2015 20:35:34 +0000
(21:35 +0100)
Library/libs/tmpfile.c
patch
|
blob
|
history
diff --git
a/Library/libs/tmpfile.c
b/Library/libs/tmpfile.c
index
ca2da44
..
05eed7c
100644
(file)
--- a/
Library/libs/tmpfile.c
+++ b/
Library/libs/tmpfile.c
@@
-5,7
+5,7
@@
FILE *tmpfile(void)
{
int fd = mkstemp("/tmp/tmpfileXXXXXX");
if (fd == -1)
- return;
+ return
NULL
;
return fdopen(fd, "r+");
}