X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_restore.c;h=a0ef6359c1e7be1298832687325521feb2b546c1;hb=c20f3bfc89a81e291b6374b6f414a1a4cac0a2e6;hp=ccac072d4e29992db7fe5a01ce5c122225370310;hpb=298b318acaf1147474ab9e97cac37c3608660efd;p=rrdtool.git 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) {