From c9add4d59a1615aabc565e323cb19cf7ef4b6b64 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 21 Mar 2008 11:48:09 +0100 Subject: [PATCH] Fix Coverity ID 506 --- source/registry/reg_perfcount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/registry/reg_perfcount.c b/source/registry/reg_perfcount.c index bc22b3da72f..e6088470481 100644 --- a/source/registry/reg_perfcount.c +++ b/source/registry/reg_perfcount.c @@ -678,7 +678,10 @@ bool _reg_perfcount_get_instance_info(PERF_INSTANCE_DEFINITION *inst, memset(temp, 0, PERFCOUNT_MAX_LEN); snprintf(temp, PERFCOUNT_MAX_LEN, "i%d", instId); _reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, obj->ObjectNameTitleIndex, temp); - _reg_perfcount_get_counter_data(key, &data); + if (!_reg_perfcount_get_counter_data(key, &data)) { + DEBUG(3, ("_reg_perfcount_get_counter_data failed\n")); + return false; + } if(data.dptr == NULL) { DEBUG(3, ("_reg_perfcount_get_instance_info: No instance data for instance [%s].\n", -- 2.11.4.GIT