Skip to content

Commit 6d7f7e6

Browse files
authored
Merge pull request ossec#1841 from ddpbsd/json_warning
Silence a warning in json output
2 parents 63a9a09 + ca5ad3c commit 6d7f7e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/analysisd/format/json_extended.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ void W_JSON_ParseAgentIP(cJSON* root, const Eventinfo* lf)
275275
// The file location usually comes with more information about the alert (like hostname or ip) we will extract just the "/var/folder/file.log".
276276
void W_JSON_ParseLocation(cJSON* root, const Eventinfo* lf, int archives)
277277
{
278+
if (archives != 0) {
279+
debug1("ossec-analysisd: DEBUG: archives != 0");
280+
}
278281
if(lf->location[0] == '(') {
279282
char* search;
280283
char string[MAX_STRING];

0 commit comments

Comments
 (0)