aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-18 15:38:32 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-18 15:41:57 +0530
commit7d2e561246ed29eca19fe2a666ec2ae6e94964ad (patch)
treeb5cfc9d67aff5d0720f6077559a176ca4ed0cf6b /src
parentf581e9afda83549607870d0edc94e7ce5ea10d29 (diff)
solver_util/jobid_init: make sure ret is initialized
Diffstat (limited to 'src')
-rw-r--r--src/solver_util.c2
1 files changed, 1 insertions, 1 deletions
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) {