aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-04-28 21:58:42 +0000
committerGuy Harris <guy@alum.mit.edu>2007-04-28 21:58:42 +0000
commit706a02899630d5274d3cd41eaba1a352cc4d3c5c (patch)
treea4a271550c7316ba9fc48570c8a7d9ae0c150e5f /epan/emem.c
parentb98d651b21aa7b469211b268e7daff22f5a892f8 (diff)
In emem_tree_lookup_string(), return NULL if the allocation fails.
svn path=/trunk/; revision=21612
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/emem.c b/epan/emem.c
index bae87b0cfd..0e2994832b 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -1485,7 +1485,7 @@ emem_tree_lookup_string(emem_tree_t* se_tree, const gchar* k) {
aligned = malloc(div * sizeof (guint32));
if (aligned == NULL)
- return; /* XXX - fail somehow? */
+ return NULL; /* XXX - better failure indication? */
memcpy(aligned, k, div * sizeof (guint32));
key[0].length = 1;