Fixed some issues from the CppCheck report.

This commit is contained in:
aleos89
2014-04-09 22:24:51 -04:00
parent e07a11186d
commit 35d838c9d2
7 changed files with 45 additions and 53 deletions

View File

@@ -915,7 +915,6 @@ int mapif_parse_broadcast(int fd)
int mapif_parse_WisRequest(int fd)
{
struct WisData* wd;
static int wisid = 0;
char name[NAME_LENGTH];
char esc_name[NAME_LENGTH*2+1];// escaped name
char* data;
@@ -964,6 +963,7 @@ int mapif_parse_WisRequest(int fd)
}
else
{
static int wisid = 0;
CREATE(wd, struct WisData, 1);