Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 6 Feb 2012 22:19:07 +0000 (22:19 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 6 Feb 2012 22:19:07 +0000 (22:19 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40908 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/k12text.l

index 59f7f8219e65d590e97dfc6eb041cb7e52b662bc..95fd387b9c77d9d5057e903cfd843690c3216e02 100644 (file)
@@ -400,7 +400,6 @@ k12text_dump(wtap_dumper *wdh _U_, const struct wtap_pkthdr *phdr,
        }
 
        wl = g_snprintf(p, left, "\r\n\r\n");
-       p+= wl;
        left -= wl;
 
        ret = wtap_dump_file_write(wdh, buf, K12BUF_SIZE - left, err);