dodan override za lintian
[ossec-hids.git] / src / os_regex / os_regex_free_substrings.c
index e2cfcd2..56e61ff 100755 (executable)
@@ -5,7 +5,7 @@
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
 
  */
 void OSRegex_FreeSubStrings(OSRegex *reg)
 {
-    int i = 0;
-
     /* Freeing the sub strings */
     if(reg->sub_strings)
     {
+        int i = 0;
         while(reg->sub_strings[i])
         {
             free(reg->sub_strings[i]);