aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/s1ap
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-07-11 03:16:54 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-07-11 03:16:54 +0000
commita062966c3232424f3c69f8b8d311522f040750b9 (patch)
tree62c21f29431e21dd4596047831cd95a6b37626b5 /asn1/s1ap
parentd8261197b15c26c0e91c6e8b9b0804c184a5de73 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25701 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/s1ap')
-rw-r--r--asn1/s1ap/s1ap.cnf16
1 files changed, 8 insertions, 8 deletions
diff --git a/asn1/s1ap/s1ap.cnf b/asn1/s1ap/s1ap.cnf
index 394013563a..d63eefda62 100644
--- a/asn1/s1ap/s1ap.cnf
+++ b/asn1/s1ap/s1ap.cnf
@@ -165,19 +165,19 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound")
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
NO_BOUND, NO_BOUND, FALSE, &parameter_tvb);
-if (!parameter_tvb)
- return offset;
+ if (!parameter_tvb)
+ return offset;
- length = tvb_length(parameter_tvb);
+ length = tvb_length(parameter_tvb);
- for (p_offset=0; p_offset < length; p_offset++){
+ 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)
+ }
+ if (is_ascii)
proto_item_append_text(actx->created_item,"(%%s)",tvb_format_text(parameter_tvb, 0, length));
#.END
@@ -515,4 +515,4 @@ LocationReportingControl N s1ap.proc.imsg id-LocationReportingControl
LocationReportingFailureIndication N s1ap.proc.imsg id-LocationReportingFailureIndication
LocationReport N s1ap.proc.imsg id-LocationReport
-#.END \ No newline at end of file
+#.END