diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-07-27 12:09:15 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-07-28 13:45:59 +0000 |
commit | 5ebc85e705049983095e50d02577c4e39aad77fa (patch) | |
tree | daa0755231635462e83a0d743c91ecc802d0bb5d | |
parent | b021f5bce1810d58a3bcae42ea97242ed24bc41d (diff) |
ndpiReader.c: fix variable ‘fileName’ set but not used [-Werror=unused-but-set-variable]
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index e6281b617..189321968 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2285,7 +2285,6 @@ void automataUnitTest() { void bpf_filter_produce_filter(int port_array[], int p_size, const char *host_array[48], int h_size, char *filePath) { FILE *fp = NULL; char _filterFilePath[1024]; - char *fileName; char filter[2048]; int produced = 0; int i = 0; @@ -2337,7 +2336,6 @@ void bpf_filter_produce_filter(int port_array[], int p_size, const char *host_ar produced = 1; } - fileName = basename(filePath); snprintf(_filterFilePath, sizeof(_filterFilePath), "%s.bpf", filePath); if((fp = fopen(_filterFilePath,"w")) == NULL) { |