Get rid of variable, 'end'.

svn path=/trunk/; revision=50285
This commit is contained in:
Chris Maynard 2013-07-01 06:03:35 +00:00
parent 8bfc3f6865
commit 9a394ddfa0
1 changed files with 1 additions and 3 deletions

View File

@ -3240,11 +3240,9 @@ tvb_skip_wsp(tvbuff_t *tvb, const gint offset, const gint maxlength)
gint
tvb_skip_wsp_return(tvbuff_t *tvb, const gint offset) {
gint counter = offset;
gint end;
guint8 tempchar;
end = 0;
for(counter = offset; counter > end &&
for(counter = offset; counter > 0 &&
((tempchar = tvb_get_guint8(tvb,counter)) == ' ' ||
tempchar == '\t' || tempchar == '\n' || tempchar == '\r'); counter--);
counter++;