even if we don't want to close stdout on wtap_dump_close(), we might at least try...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 17 Feb 2006 01:47:53 +0000 (01:47 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 17 Feb 2006 01:47:53 +0000 (01:47 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17326 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/file_access.c

index 09b810f7d998c37c60caef6d054115f7358d8c77..18b4b0172bc35d09a3d9982321d0714b8ad2ebc4 100644 (file)
@@ -799,7 +799,10 @@ gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
                        }
                        ret = FALSE;
                }
-       }
+    } else {
+        /* as we don't close stdout, at least try to flush it */
+        wtap_dump_flush(wdh);
+    }
        if (wdh->dump.opaque != NULL)
                g_free(wdh->dump.opaque);
        g_free(wdh);