Fixed errors reported by valgrind

Fixed errors reported by valgrind
This commit is contained in:
MassimilianoPinto
2015-09-15 15:49:41 +02:00
parent a2d91678c7
commit 6b05176684
2 changed files with 30 additions and 17 deletions

View File

@ -1790,7 +1790,7 @@ char *service_passwd = NULL;
int
blr_load_dbusers(ROUTER_INSTANCE *router)
{
int loaded;
int loaded = -1;
char path[PATH_MAX+1] = "";
SERVICE *service;
service = router->service;
@ -1865,7 +1865,7 @@ blr_save_dbusers(ROUTER_INSTANCE *router)
{
SERVICE *service;
char path[PATH_MAX+1] = "";
int mkdir_rval;
int mkdir_rval = 0;
service = router->service;