fix some findings by the static analyser
This commit is contained in:
parent
c9b0f4784a
commit
8bcb099384
@ -92,6 +92,7 @@ int read_intel_hex(const char *filename)
|
|||||||
if (*buf) {
|
if (*buf) {
|
||||||
if (parse_hex_line(buf) == 0) {
|
if (parse_hex_line(buf) == 0) {
|
||||||
printf("Warning, parse error line %d\n", lineno);
|
printf("Warning, parse error line %d\n", lineno);
|
||||||
|
fclose(fp);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/tools/linux-border_router/testing.c
vendored
2
dist/tools/linux-border_router/testing.c
vendored
@ -36,6 +36,8 @@ void init_file(const char *skeleton_file_name,
|
|||||||
fprintf(stats_file, "%s", line);
|
fprintf(stats_file, "%s", line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(skeleton_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
int testing_init(const char *stats_file_name,
|
int testing_init(const char *stats_file_name,
|
||||||
|
|||||||
@ -414,8 +414,8 @@ static void receive_packet(uint16_t type, uint8_t pos)
|
|||||||
receive_at86rf231_packet(trans_p);
|
receive_at86rf231_packet(trans_p);
|
||||||
#else
|
#else
|
||||||
trans_p = NULL;
|
trans_p = NULL;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
else if (type == RCV_PKT_NATIVE) {
|
else if (type == RCV_PKT_NATIVE) {
|
||||||
#ifdef MODULE_NATIVENET
|
#ifdef MODULE_NATIVENET
|
||||||
receive_nativenet_packet(trans_p);
|
receive_nativenet_packet(trans_p);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user