diff options
author | Karel Zak | 2018-02-20 10:40:22 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-20 10:43:32 +0100 |
commit | 685f544918e4287abea4a04c69502df5b17d4f36 (patch) | |
tree | fdc195e40447e7e684a4dda3b2f7b71f928aea14 | |
parent | fsck: cleanup find_fsck() (diff) | |
download | kernel-qcow2-util-linux-685f544918e4287abea4a04c69502df5b17d4f36.tar.gz kernel-qcow2-util-linux-685f544918e4287abea4a04c69502df5b17d4f36.tar.xz kernel-qcow2-util-linux-685f544918e4287abea4a04c69502df5b17d4f36.zip |
chrt: fix compiler warning [-Wmaybe-uninitialized]
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | schedutils/chrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c index 3d21c4387..b08c78ed8 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -207,7 +207,7 @@ static const char *get_policy_name(int policy) static void show_sched_pid_info(struct chrt_ctl *ctl, pid_t pid) { - int policy, reset_on_fork = 0, prio = 0; + int policy = -1, reset_on_fork = 0, prio = 0; #ifdef SCHED_DEADLINE uint64_t deadline = 0, runtime = 0, period = 0; #endif |