summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed94741)
raw | patch | inline | side by side (parent: ed94741)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 16 Feb 2003 12:32:24 +0000 (12:32 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 16 Feb 2003 12:32:24 +0000 (12:32 +0000) |
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index ccac072d4e29992db7fe5a01ce5c122225370310..a0ef6359c1e7be1298832687325521feb2b546c1 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
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) {