mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 22:45:06 -05:00
Fix Clang static analyzer warnings about never read values
This commit is contained in:
3
cmdmon.c
3
cmdmon.c
@@ -1937,8 +1937,6 @@ read_from_cmd_socket(void *anything)
|
||||
/* This should be already handled */
|
||||
assert(0);
|
||||
} else {
|
||||
allowed = 0;
|
||||
|
||||
/* Check level of authority required to issue the command */
|
||||
switch(permissions[rx_command]) {
|
||||
case PERMIT_AUTH:
|
||||
@@ -1960,6 +1958,7 @@ read_from_cmd_socket(void *anything)
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
allowed = 0;
|
||||
}
|
||||
|
||||
if (allowed) {
|
||||
|
||||
Reference in New Issue
Block a user