From 0ebe688d2462fe99faf3ec9ef4d36e33017a636c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 12 Aug 2015 17:29:32 -0300 Subject: Avoid future confusions with how default values are set. --- AffinityPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AffinityPanel.c') diff --git a/AffinityPanel.c b/AffinityPanel.c index 8612855c..b400cadb 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -58,7 +58,7 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity) { } else { mode = false; } - Panel_add(this, (Object*) CheckItem_new(strdup(number), NULL, mode)); + Panel_add(this, (Object*) CheckItem_newByVal(strdup(number), mode)); } return this; } -- cgit v1.2.3