ASCII (well, alphabetic, really) until proven otherwise; that fixes a
warning, which is a valid warning if the length is 0. Clean up indentation a bit. svn path=/trunk/; revision=25701
This commit is contained in:
parent
08b4f712c8
commit
b92594e56c
|
@ -170,12 +170,12 @@ if (!parameter_tvb)
|
|||
|
||||
length = tvb_length(parameter_tvb);
|
||||
|
||||
is_ascii = TRUE;
|
||||
for (p_offset=0; p_offset < length; p_offset++){
|
||||
if(!isalpha(tvb_get_guint8(parameter_tvb, p_offset ))){
|
||||
is_ascii = FALSE;
|
||||
break;
|
||||
}
|
||||
is_ascii = TRUE;
|
||||
}
|
||||
if (is_ascii)
|
||||
proto_item_append_text(actx->created_item,"(%%s)",tvb_format_text(parameter_tvb, 0, length));
|
||||
|
|
|
@ -1762,12 +1762,12 @@ if (!parameter_tvb)
|
|||
|
||||
length = tvb_length(parameter_tvb);
|
||||
|
||||
is_ascii = TRUE;
|
||||
for (p_offset=0; p_offset < length; p_offset++){
|
||||
if(!isalpha(tvb_get_guint8(parameter_tvb, p_offset ))){
|
||||
is_ascii = FALSE;
|
||||
break;
|
||||
}
|
||||
is_ascii = TRUE;
|
||||
}
|
||||
if (is_ascii)
|
||||
proto_item_append_text(actx->created_item,"(%s)",tvb_format_text(parameter_tvb, 0, length));
|
||||
|
|
Loading…
Reference in New Issue