From cdfa6622ed0d33d338bfdab03dc01ddad81ca942 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Tue, 14 Jul 2020 17:35:40 +0300 Subject: [PATCH] ensure that 'c' is initialized before used --- src/io/obj/common.h | 1 + src/io/stl/common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/io/obj/common.h b/src/io/obj/common.h index 7e452614..7dac08cf 100644 --- a/src/io/obj/common.h +++ b/src/io/obj/common.h @@ -77,6 +77,7 @@ typedef struct WOState { #define NEXT_LINE \ do { \ + c = *p; \ while (p \ && p[0] != '\0' \ && !AK_ARRAY_NLINE_CHECK \ diff --git a/src/io/stl/common.h b/src/io/stl/common.h index d0bdc5fe..bff42b25 100644 --- a/src/io/stl/common.h +++ b/src/io/stl/common.h @@ -48,6 +48,7 @@ typedef struct STLState { #define NEXT_LINE \ do { \ + c = *p; \ while (p \ && p[0] != '\0' \ && !AK_ARRAY_NLINE_CHECK \