From 92885d6960135b5f5f0c6a0e18ee796031b7f752 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 29 Nov 2016 10:45:02 -0600 Subject: [PATCH] profiling: fix shadow error Local variable store was shadowing variable in function definition. --- src/util-profiling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-profiling.c b/src/util-profiling.c index a49d80aeaf..122db86ea9 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -1117,7 +1117,7 @@ static inline void SCProfilingUpdatePacketGenericRecord(PktProfilingData *pdt, } static void SCProfilingUpdatePacketGenericRecords(Packet *p, PktProfilingData *pd, - struct ProfileProtoRecords *store, int size) + struct ProfileProtoRecords *records, int size) { int i; for (i = 0; i < size; i++) { @@ -1127,7 +1127,7 @@ static void SCProfilingUpdatePacketGenericRecords(Packet *p, PktProfilingData *p continue; } - struct ProfileProtoRecords *r = &store[i]; + struct ProfileProtoRecords *r = &records[i]; SCProfilePacketData *store = NULL; if (PKT_IS_IPV4(p)) {