From fe6a0bb337e68312538b4715f0850bcfc7131ccb Mon Sep 17 00:00:00 2001 From: Heng Li Date: Wed, 16 Jun 2021 10:16:36 -0400 Subject: [PATCH] r1064: fixed another uninitialized condition This one should also be harmless. It affects a min value, but that value is not actually used. --- krmq.h | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/krmq.h b/krmq.h index 4f4ea75..8fa1cce 100644 --- a/krmq.h +++ b/krmq.h @@ -247,7 +247,7 @@ int main(void) { unsigned char dir[KRMQ_MAX_DEPTH]; \ int i, d = 0, cmp; \ unsigned cnt = 0; \ - fake.__head.p[0] = *root_, fake.__head.p[1] = 0; \ + fake = **root_, fake.__head.p[0] = *root_, fake.__head.p[1] = 0; \ if (cnt_) *cnt_ = 0; \ if (x) { \ for (cmp = -1, p = &fake; cmp; cmp = __cmp(x, p)) { \ diff --git a/main.c b/main.c index 030e023..e58198f 100644 --- a/main.c +++ b/main.c @@ -7,7 +7,7 @@ #include "mmpriv.h" #include "ketopt.h" -#define MM_VERSION "2.20-r1063-dirty" +#define MM_VERSION "2.20-r1064-dirty" #ifdef __linux__ #include