Skip to content

Commit

Permalink
Fix redundant zero initializations for global vars
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu authored and razvancrainea committed Feb 11, 2020
1 parent e267fe7 commit 9cfea95
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
14 changes: 7 additions & 7 deletions modules/b2b_entities/b2b_entities.c
Expand Up @@ -58,21 +58,21 @@ static mi_response_t *mi_b2be_list(const mi_params_t *params,
/** Global variables */
unsigned int server_hsize = 9;
unsigned int client_hsize = 9;
static char* script_req_route = NULL;
static char* script_reply_route = NULL;
static char* script_req_route;
static char* script_reply_route;
int req_routeid = -1;
int reply_routeid = -1;
int replication_mode= 0;
static str db_url= {0, 0};
db_con_t *b2be_db = NULL;
int replication_mode = 0;
static str db_url;
db_con_t *b2be_db;
db_func_t b2be_dbf;
str b2be_dbtable= str_init("b2b_entities");
static int b2b_update_period = 100;
int uac_auth_loaded;
str b2b_key_prefix = str_init("B2B");
int b2be_db_mode = WRITE_BACK;
b2b_table server_htable = NULL;
b2b_table client_htable = NULL;
b2b_table server_htable;
b2b_table client_htable;

#define DB_COLS_NO 26

Expand Down
21 changes: 10 additions & 11 deletions modules/emergency/emergency_methods.c
Expand Up @@ -53,25 +53,24 @@ struct rr_binds rr_api;
struct tm_binds eme_tm;

str db_url;
str *db_table = NULL;
str *db_table;
db_func_t db_funcs;
db_con_t *db_con = NULL;
db_con_t *db_con;

struct esrn_routing **db_esrn_esgwri = NULL;
struct service_provider **db_service_provider = NULL;
struct esrn_routing **db_esrn_esgwri;
struct service_provider **db_service_provider;

str callid_aux;
char* url_vpc;

int emet_size = 0;
int subst_size = 0;
int emet_size;
int subst_size;

char *empty = NULL;
char *empty;
char *mandatory_parm;

char* mandatory_parm = NULL;

struct call_htable* call_htable = NULL;
struct subs_htable* subs_htable = NULL;
struct call_htable *call_htable;
struct subs_htable *subs_htable;

/*
* Exported functions
Expand Down

0 comments on commit 9cfea95

Please sign in to comment.