diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-03-20 10:55:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-03-20 10:55:50 +0000 |
commit | 6c16e488a129fcc289a2c388ddf8127b0c903b71 (patch) | |
tree | dd959c7872fb1e10543a2699dd257e36b335b48b /wiretap/ascend-grammar.y | |
parent | 6e4536cb74aa2f1aa90cfef38044a377e8e7910b (diff) | |
download | wireshark-6c16e488a129fcc289a2c388ddf8127b0c903b71.tar.gz |
"*p++" doesn't affect what "p" points to; it only affects "p" itself,
and is equivalent to just "p++". If "p" isn't used after that, "*p++"
does nothing whatsoever, and can just be removed.
svn path=/trunk/; revision=13818
Diffstat (limited to 'wiretap/ascend-grammar.y')
-rw-r--r-- | wiretap/ascend-grammar.y | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/wiretap/ascend-grammar.y b/wiretap/ascend-grammar.y index 50dc36d6cf..74456e31d8 100644 --- a/wiretap/ascend-grammar.y +++ b/wiretap/ascend-grammar.y @@ -484,8 +484,6 @@ parse_ascend(FILE_T fh, guint8 *pd, struct ascend_phdr *phdr, an infinite loop reading a broken trace. */ if (first_hexbyte) *start_of_data = first_hexbyte; - else - *start_of_data++; /* if we got at least some data, return success even if the parser reported an error. This is because the debug header gives the number |