diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-09-01 19:31:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-09-01 19:31:41 +0000 |
commit | 5dd678f0a7d6c31e4b70cae68f60f4cafb6cfdac (patch) | |
tree | 23d3739609dc90f1f00be05fee3ba37e7edf2006 /epan/addr_resolv.c | |
parent | 2a5826d250b8bc957b45a9a0a01e1c087a9036ac (diff) |
Check whether "size" points to something positive, not whether "size"
itself is positive (which makes no sense for a pointer).
svn path=/trunk/; revision=29661
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index dcb3f9ad08..2960684b41 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -367,7 +367,7 @@ static int fgetline(char **buf, int *size, FILE *fp) } g_assert(*buf); - g_assert(size > 0); + g_assert(*size > 0); if (feof(fp)) return -1; |