summaryrefslogtreecommitdiffstats
path: root/src/openlmi.h
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2014-03-25 10:15:18 +0100
committerRadek Novacek <rnovacek@redhat.com>2014-03-25 10:30:37 +0100
commita7d7b281342b24146133f132867b3e1da276e923 (patch)
tree3715a65fb0b2fbdff1188ce37bbdee6ea9edbb67 /src/openlmi.h
parent4982dd72dbb5c0441c2fe0e3e213cd25c0424ea7 (diff)
downloadopenlmi-providers-a7d7b281342b24146133f132867b3e1da276e923.tar.gz
openlmi-providers-a7d7b281342b24146133f132867b3e1da276e923.tar.xz
openlmi-providers-a7d7b281342b24146133f132867b3e1da276e923.zip
Fix incorrect array length when reading provider config options
Use NULL terminated array instead of obtaining array length using sizeof (which doesn't work in this case).
Diffstat (limited to 'src/openlmi.h')
-rw-r--r--src/openlmi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openlmi.h b/src/openlmi.h
index c0a3b5f..a46544c 100644
--- a/src/openlmi.h
+++ b/src/openlmi.h
@@ -80,7 +80,8 @@ const char *lmi_get_system_creation_class_name(void);
* @param cb CMPIBroker
* @param ctx CMPIContext
* @param provider_config_defaults Array of default config values for given provider
- * NULL if there is no provider-specific configuration
+ * terminated by empty struct or NULL if there is no
+ * provider-specific configuration
*/
void lmi_init(const char *provider, const CMPIBroker *cb,
const CMPIContext *ctx,