[aravis/dom] gc: prevent a crash when looking for a node with name=NULL.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis/dom] gc: prevent a crash when looking for a node with name=NULL.
- Date: Thu, 1 Mar 2012 10:18:13 +0000 (UTC)
commit 67fa6da775517b56011b5bc9f7a3f02ba28ddfdf
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Thu Mar 1 10:51:37 2012 +0100
gc: prevent a crash when looking for a node with name=NULL.
src/arvgc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/arvgc.c b/src/arvgc.c
index 79e3978..b61b3fc 100644
--- a/src/arvgc.c
+++ b/src/arvgc.c
@@ -138,6 +138,7 @@ ArvGcNode *
arv_gc_get_node (ArvGc *genicam, const char *name)
{
g_return_val_if_fail (ARV_IS_GC (genicam), NULL);
+ g_return_val_if_fail (name != NULL, NULL);
return g_hash_table_lookup (genicam->nodes, name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]