summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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