# HG changeset patch # User William Astle # Date 1553027876 21600 # Node ID 40c32a0af8c86654cf1234990706e087ca052573 # Parent 9c24336fa76c1211f8938c313f33f22defe1a761 Fix crash when --symbols specified without --list diff -r 9c24336fa76c -r 40c32a0af8c8 lwasm/list.c --- a/lwasm/list.c Thu Jan 24 18:24:03 2019 -0700 +++ b/lwasm/list.c Tue Mar 19 14:37:56 2019 -0600 @@ -324,7 +324,7 @@ lw_free(obytes); obytes = NULL; } - if ((as -> flags & FLAG_SYMBOLS)) + if ((as -> flags & FLAG_SYMBOLS) && of) list_symbols(as, of); if (of && of != stdout) fclose(of);