From 7d2e561246ed29eca19fe2a666ec2ae6e94964ad Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 18 Jul 2024 15:38:32 +0530 Subject: solver_util/jobid_init: make sure ret is initialized --- src/solver_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/solver_util.c b/src/solver_util.c index a4fd092..5731c9a 100644 --- a/src/solver_util.c +++ b/src/solver_util.c @@ -52,7 +52,7 @@ int jobid_init(struct job_clist *q, struct jobid **job_ids) { struct jobid *jid; struct job *j; - int ret; + int ret = 0; jid = malloc(sizeof(*jid)); if (jid == NULL) { -- cgit v1.2.3