Mercurial > hg > index.cgi
comparison lwasm/list.c @ 553:3a173cefc814
Fix missing NULL guard found by gcc static analysis
Fix a missing NULL guard in listing pass found with gcc analyzer.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 06 Jul 2023 12:06:22 -0600 |
parents | f3018ed5e30e |
children | 6237505ee1dc |
comparison
equal
deleted
inserted
replaced
552:f9ffd1935cee | 553:3a173cefc814 |
---|---|
267 } | 267 } |
268 } | 268 } |
269 | 269 |
270 if (as -> tabwidth == 0) | 270 if (as -> tabwidth == 0) |
271 { | 271 { |
272 fputs(cl -> ltext, of); | 272 if (of) fputs(cl -> ltext, of); |
273 } | 273 } |
274 else | 274 else |
275 { | 275 { |
276 i = 0; | 276 i = 0; |
277 for (tc = cl -> ltext; *tc; tc++) | 277 for (tc = cl -> ltext; *tc; tc++) |