From d41c80f7eb1eeb08b074d77e8826086f71a7a246 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 2 Sep 2013 08:37:04 +0200 Subject: 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 --- netsniff-ng.c | 1 - 1 file changed, 1 deletion(-) (limited to 'netsniff-ng.c') 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; -- cgit v1.2.3-54-g00ecf