diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2021-10-10 10:19:08 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2021-10-10 17:29:18 +0200 |
commit | 376b2ceff6b498f7f9ab719c0dd4811c2bbda2c6 (patch) | |
tree | ecf5be8ddbc7239dbd3b53bc74fcb54d2baa5d99 | |
parent | d8e39b5917a5dc9c11ecf5714b8c2e1037a9838d (diff) | |
download | busybox-w32-376b2ceff6b498f7f9ab719c0dd4811c2bbda2c6.tar.gz busybox-w32-376b2ceff6b498f7f9ab719c0dd4811c2bbda2c6.tar.bz2 busybox-w32-376b2ceff6b498f7f9ab719c0dd4811c2bbda2c6.zip |
chrt: silence analyzer warning
warning: use of uninitialized value ‘priority’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
chrt_main 499 496 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-3) Total: -3 bytes
text data bss dec hex filename
972157 4235 1840 978232 eed38 busybox_old
972154 4235 1840 978229 eed35 busybox_unstripped
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | util-linux/chrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/chrt.c b/util-linux/chrt.c index a8701b55f..6799abb2d 100644 --- a/util-linux/chrt.c +++ b/util-linux/chrt.c | |||
@@ -93,7 +93,7 @@ int chrt_main(int argc UNUSED_PARAM, char **argv) | |||
93 | unsigned opt; | 93 | unsigned opt; |
94 | struct sched_param sp; | 94 | struct sched_param sp; |
95 | char *pid_str; | 95 | char *pid_str; |
96 | char *priority = priority; /* for compiler */ | 96 | char *priority = NULL; |
97 | const char *current_new; | 97 | const char *current_new; |
98 | int policy = SCHED_RR; | 98 | int policy = SCHED_RR; |
99 | int ret; | 99 | int ret; |