Avoid double display of SRU/SRW records (bug #2798).
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 1 May 2009 07:48:52 +0000 (09:48 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 1 May 2009 07:48:52 +0000 (09:48 +0200)
client/client.c

index b3bec5e..f528d96 100644 (file)
@@ -3914,11 +3914,6 @@ static void handle_srw_record(Z_SRW_record *rec)
     printf("\n");
     if (rec->recordData_buf && rec->recordData_len)
     {
-        if (fwrite(rec->recordData_buf, 1, rec->recordData_len, stdout) !=
-            (size_t) (rec->recordData_len))
-        {
-            printf("write to stdout failed\n");
-        }
         printf("%.*s", rec->recordData_len, rec->recordData_buf);
         marc_file_write(rec->recordData_buf, rec->recordData_len);
     }