summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem.jover@nokia.com>2009-02-21 11:49:04 +0100
committerDanny Kukawka <danny.kukawka@web.de>2009-02-21 11:49:04 +0100
commit246f467e1ed21b6f4f882c6d93415222c821fe1e (patch)
tree9f593359e31106aaacb30c822bd88e7870d43bfe
parent297024565738204bc5988e61b833b0763906814c (diff)
do not call property_set_lookup before checking param validity
Fixed libhal: do not call property_set_lookup before checking param validity.
-rw-r--r--libhal/libhal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhal/libhal.c b/libhal/libhal.c
index 855b9dc1..9e4b99f0 100644
--- a/libhal/libhal.c
+++ b/libhal/libhal.c
@@ -657,7 +657,7 @@ property_set_lookup (const LibHalPropertySet *set, const char *key)
LibHalPropertyType
libhal_ps_get_type (const LibHalPropertySet *set, const char *key)
{
- LibHalProperty *p = property_set_lookup (set, key);
+ LibHalProperty *p;
LIBHAL_CHECK_PARAM_VALID(set, "*set", LIBHAL_PROPERTY_TYPE_INVALID);
LIBHAL_CHECK_PARAM_VALID(key, "*key", LIBHAL_PROPERTY_TYPE_INVALID);