Re: [PATCH 13/14] Silent a warning from coverity about icmap_track being used without assign

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Angus Salkeld <asalkeld@xxxxxxxxxx>

On 16/01/12 13:48 -0700, Steven Dake wrote:
Signed-off-by: Steven Dake <sdake@xxxxxxxxxx>
---
exec/mon.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exec/mon.c b/exec/mon.c
index 2de55fe..fc5be86 100644
--- a/exec/mon.c
+++ b/exec/mon.c
@@ -442,7 +442,7 @@ static void mon_instance_init (struct resource_instance* inst)
{
	uint64_t tmp_value;
	char key_name[ICMAP_KEYNAME_MAXLEN];
-	icmap_track_t icmap_track;
+	icmap_track_t icmap_track = NULL;

	snprintf(key_name, ICMAP_KEYNAME_MAXLEN, "%s%s", inst->icmap_path, "current");
	if (inst->max_type == ICMAP_VALUETYPE_INT32) {
--
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux