Prechádzať zdrojové kódy

dialplan: fixed typo in define for guarding .h file

- init local variable to avoid warning
Daniel-Constantin Mierla 11 rokov pred
rodič
commit
53f67e60f4
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 2 1
      modules/dialplan/dp_db.c
  2. 1 1
      modules/dialplan/dp_db.h

+ 2 - 1
modules/dialplan/dp_db.c

@@ -360,7 +360,8 @@ dpl_node_t * build_rule(db_val_t * values)
 	struct subst_expr *repl_comp;
 	dpl_node_t * new_rule;
 	str match_exp, subst_exp, repl_exp, attrs;
-	int matchop, cap_cnt;
+	int matchop;
+	int cap_cnt=0;
 
 	matchop = VAL_INT(values+2);
 

+ 1 - 1
modules/dialplan/dp_db.h

@@ -32,7 +32,7 @@
  */
 
 #ifndef _DP_DB_H_
-#define _DP_DB_H
+#define _DP_DB_H_
 
 #include "../../str.h"
 #include "../../lib/srdb1/db.h"