projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Win32 build. VC++ 6.0 and 7.0 now use the thread-safe code.
[rrdtool.git]
/
src
/
rrd_restore.c
diff --git
a/src/rrd_restore.c
b/src/rrd_restore.c
index
ccac072
..
a0ef635
100644
(file)
--- a/
src/rrd_restore.c
+++ b/
src/rrd_restore.c
@@
-405,7
+405,7
@@
rrd_write(char *file_name, rrd_t *rrd)
FILE *rrd_file=NULL;
if (strcmp("-",file_name)==0){
-
*rrd_file= *
stdout;
+
rrd_file=
stdout;
} else {
int fd = open(file_name,O_RDWR|O_CREAT|O_EXCL,0666);
if (fd == -1 || (rrd_file = fdopen(fd,"wb")) == NULL) {