From ed81aafcd615bf6d9aa957e4d9957e460508eaf4 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 16 Feb 2003 12:32:24 +0000 Subject: [PATCH] if output is - there is not need to deref the handler git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@182 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_restore.c b/src/rrd_restore.c index ccac072..a0ef635 100644 --- 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) { -- 2.11.0