From: oetiker Date: Sun, 16 Feb 2003 12:32:24 +0000 (+0000) Subject: if output is - there is not need to deref the handler X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f116f1066e52ce7f7c2964f3b0df21f291bd2957;p=rrdtool-all.git if output is - there is not need to deref the handler git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@182 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c index ccac072d..a0ef6359 100644 --- a/program/src/rrd_restore.c +++ b/program/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) {