aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-01-17 17:53:38 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-01-17 19:12:45 +0000
commitb87a5af633e109225f4e37ac741db4a990162d54 (patch)
tree6e9e10a119bdb87fcc2422abfb1bd3883b0a0989 /wiretap
parent96d585a5e9baef21e1eea8505d78305b034dc80e (diff)
Fix build [-Werror=maybe-uninitialized]
Found building with GCC 5.3.0 and CFLAGS="-g -Og". Change-Id: I5bc29b6e91cc98332a513c9d03b02d2f6906608d Reviewed-on: https://code.wireshark.org/review/13362 Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/logcat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/logcat.c b/wiretap/logcat.c
index a20c5bd2d9..54b87a3033 100644
--- a/wiretap/logcat.c
+++ b/wiretap/logcat.c
@@ -107,6 +107,8 @@ static gint detect_version(FILE_T fh, int *err, gchar **err_info)
entry_len = sizeof(*log_entry_v2) + payload_length;
if (hdr_size != sizeof(*log_entry_v2))
continue;
+ } else {
+ continue;
}
if (!wtap_read_bytes(fh, buffer + read_sofar, entry_len - read_sofar, err, err_info)) {