Skip to content

Commit

Permalink
ensure that 'c' is initialized before used
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Jul 14, 2020
1 parent 3ccafcd commit cdfa662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/io/obj/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ typedef struct WOState {

#define NEXT_LINE \
do { \
c = *p; \
while (p \
&& p[0] != '\0' \
&& !AK_ARRAY_NLINE_CHECK \
Expand Down
1 change: 1 addition & 0 deletions src/io/stl/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ typedef struct STLState {

#define NEXT_LINE \
do { \
c = *p; \
while (p \
&& p[0] != '\0' \
&& !AK_ARRAY_NLINE_CHECK \
Expand Down

0 comments on commit cdfa662

Please sign in to comment.