Compilation fix on systems without JSON-C

This commit is contained in:
Luca Deri
2019-08-29 15:35:29 +02:00
parent e98eb294c7
commit 8b8fd25626
22 changed files with 138 additions and 134 deletions
+4
View File
@@ -1839,6 +1839,7 @@ static void json_init() {
/* *********************************************** */
#ifdef HAVE_JSON_C
/**
* @brief JSON destroy function
*/
@@ -1847,6 +1848,7 @@ static void json_destroy() {
json_object_put(jArray_unknown_flows);
json_object_put(jArray_topStats);
}
#endif
/* *********************************************** */
@@ -3263,7 +3265,9 @@ void test_lib() {
terminateDetection(thread_id);
}
#ifdef HAVE_JSON_C
json_destroy();
#endif
}
/* *********************************************** */