Initialize variable before use

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-09-10 07:19:07 +03:00 committed by Dirk Hohndel
parent 51ce83ed20
commit 33c9cc60ef

View file

@ -786,7 +786,7 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char *
bool done = false;
int inbuflen = strlen(inbuf);
char *endptr = buf + inbuflen;
bool is_log, is_dive = false;
bool is_log = false, is_dive = false;
char *sections[10];
int s, nr_sections = 0;
struct dive *dive = NULL;