Imported Upstream version 2.7
[ossec-hids.git] / src / analysisd / lists.c
index 4c0b2c4..9d907dc 100644 (file)
@@ -1,4 +1,5 @@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/analysisd/lists.c, 2011/09/08 dcid Exp $
+ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
@@ -8,7 +9,7 @@
  * License (version 3) as published by the FSF - Free Software
  * Foundation.
  *
- * License details at the LICENSE file included with OSSEC or 
+ * License details at the LICENSE file included with OSSEC or
  * online at: http://www.ossec.net/en/licensing.html
  */
 
@@ -25,7 +26,7 @@
 void Lists_OP_CreateLists()
 {
     OS_CreateListsList();
-    return; 
+    return;
 }
 
 int Lists_OP_LoadList(char * listfile)
@@ -33,13 +34,13 @@ int Lists_OP_LoadList(char * listfile)
     /* XXX Jeremy: I hate this.  I think I'm missing something dumb here */
     char *holder;
     char a_filename[OS_MAXSTR];
-    a_filename[OS_MAXSTR - 2] = '\0';
     char b_filename[OS_MAXSTR];
+    ListNode *tmp_listnode_pt = NULL;
+
+    a_filename[OS_MAXSTR - 2] = '\0';
     b_filename[OS_MAXSTR - 2] = '\0';
 
-    ListNode *tmp_listnode_pt = NULL;
     tmp_listnode_pt = (ListNode *)calloc(1,sizeof(ListNode));
-    debug1("crated new listnode for %s\n", listfile);
     if (tmp_listnode_pt == NULL)
         ErrorExit(MEM_ERROR,ARGV0);
     snprintf(a_filename, OS_MAXSTR-1, "%s", listfile);