summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorKarel Zak2018-02-20 10:40:22 +0100
committerKarel Zak2018-02-20 10:43:32 +0100
commit685f544918e4287abea4a04c69502df5b17d4f36 (patch)
treefdc195e40447e7e684a4dda3b2f7b71f928aea14 /schedutils
parentfsck: cleanup find_fsck() (diff)
downloadkernel-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>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c2
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