# HG changeset patch # User William Astle # Date 1688666782 21600 # Node ID 3a173cefc814e160a4edd3d54a32699bbc1bab56 # Parent f9ffd1935ceebc438ef5b047b41c1691bca9e6be Fix missing NULL guard found by gcc static analysis Fix a missing NULL guard in listing pass found with gcc analyzer. diff -r f9ffd1935cee -r 3a173cefc814 lwasm/list.c --- a/lwasm/list.c Fri Jun 30 09:40:17 2023 -0600 +++ b/lwasm/list.c Thu Jul 06 12:06:22 2023 -0600 @@ -269,7 +269,7 @@ if (as -> tabwidth == 0) { - fputs(cl -> ltext, of); + if (of) fputs(cl -> ltext, of); } else {