Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Tue, 15 Jul 2014 06:41:57 +0000 (08:41 +0200)
committerEvan Huus <eapache@gmail.com>
Tue, 15 Jul 2014 22:52:31 +0000 (22:52 +0000)
Change-Id: I17dc2259e039586b9a06944bd1c2b552dd23855d
Reviewed-on: https://code.wireshark.org/review/3052
Reviewed-by: Evan Huus <eapache@gmail.com>
wiretap/logcat.c

index cd4cb386c966c580b041cc9952846713e68be4af..65dc070859f3add87b7c623e4894efab0ed7440e 100644 (file)
@@ -199,7 +199,6 @@ static gint detect_version(wtap *wth, int *err, gchar **err_info)
             if (*err == 0 && bytes_read != 0)
                 *err = WTAP_ERR_SHORT_READ;
             /* short read, end of file? Whatever, this cannot be valid. */
-            version = -1;
             break;
         }
         read_sofar += bytes_read;