aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-09-18 20:11:54 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-09-18 20:11:54 +0000
commit76b09b1fee4a117c814f0402f7cdcf5478431f9c (patch)
tree7dd6be8993c633283f709d060d4084d2f4252e09
parent7981470317e2a7df00c3627d28ee2b48c7227125 (diff)
assert that tvb is not NULL
svn path=/trunk/; revision=15858
-rw-r--r--epan/tvbuff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index fd3ee2c45d..1029db5de8 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -381,6 +381,7 @@ check_offset_length_no_exception(tvbuff_t *tvb, gint offset, gint length,
{
guint end_offset;
+ g_assert(tvb);
g_assert(tvb->initialized);
if (!compute_offset_length(tvb, offset, length, offset_ptr, length_ptr, exception)) {