Bugfix/add makefile lint fix warnings (#39)
* fix warnings indicated by scan-build lint tool * add lint target to makefile using scan-build tool * add lint into build script stages (note: uses scan-build-7) * fix potential use of memory after it is freed
This commit is contained in:
@@ -1213,8 +1213,10 @@ bool Channel_Present_Value_Set(
|
||||
if (wp_data->priority != 6 /* reserved */) {
|
||||
status =
|
||||
Channel_Value_Copy(&Channel[index].Present_Value, value);
|
||||
(void)status;
|
||||
status = Channel_Write_Members(
|
||||
&Channel[index], value, wp_data->priority);
|
||||
(void)status;
|
||||
status = true;
|
||||
} else {
|
||||
/* Command priority 6 is reserved for use by Minimum On/Off
|
||||
|
||||
Reference in New Issue
Block a user