summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/account/LMI_AccountProvider.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/account/LMI_AccountProvider.c b/src/account/LMI_AccountProvider.c
index a34593e..d7b0dac 100644
--- a/src/account/LMI_AccountProvider.c
+++ b/src/account/LMI_AccountProvider.c
@@ -307,9 +307,10 @@ static CMPIStatus LMI_AccountModifyInstance(
lu_ent_add(lue, (ATTR), &val);\
#define PARAMLONG(ATTR, VAR)\
- g_value_set_long(&val, (VAR).value);\
- lu_ent_clear(lue, (ATTR));\
- if (!(VAR).null) lu_ent_add(lue, (ATTR), &val);\
+ if (!(VAR).null) {\
+ g_value_set_long(&val, (VAR).value);\
+ lu_ent_clear(lue, (ATTR));\
+ lu_ent_add(lue, (ATTR), &val);}\
/* This macro will get property named NAME and save it into `value' variable */
#define GETSTRVALUE(NAME)\