summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-09-02 08:37:04 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-09-02 08:37:04 +0200
commitd41c80f7eb1eeb08b074d77e8826086f71a7a246 (patch)
tree092410bc2979675c9c1d3c520af65fbf1fc3e6f4
parent0f61934fc77a6ef60fe751352be15f2b041351f3 (diff)
netsniff-ng: Remove unnecessary fmemset() of struct stat
The struct stat is filled by the call to stat(2) in the next line, so there is no need to explicitely set it to 0 before. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--netsniff-ng.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index a428996..42a56b5 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -952,7 +952,6 @@ static void recv_only_or_dump(struct ctx *ctx)
if (dump_to_pcap(ctx)) {
struct stat stats;
- fmemset(&stats, 0, sizeof(stats));
ret = stat(ctx->device_out, &stats);
if (ret < 0)
ctx->dump_dir = 0;