Mercurial > hg-old > index.cgi
comparison lwasm/list.c @ 164:586069fb17a1
Actually show errors when no list is requested
author | lost |
---|---|
date | Sat, 31 Jan 2009 18:12:33 +0000 |
parents | 427e268e876b |
children | bae1e3ecdce1 |
comparison
equal
deleted
inserted
replaced
163:2e6a1e914104 | 164:586069fb17a1 |
---|---|
51 lwasm_line_t *l; | 51 lwasm_line_t *l; |
52 int c, c3; | 52 int c, c3; |
53 char *p; | 53 char *p; |
54 | 54 |
55 if (!as -> listfile) | 55 if (!as -> listfile) |
56 return; | 56 goto showerr; |
57 if (as -> listfile[0] == '-' && as -> listfile[1] == '\0') | 57 if (as -> listfile[0] == '-' && as -> listfile[1] == '\0') |
58 lf = stdout; | 58 lf = stdout; |
59 else | 59 else |
60 { | 60 { |
61 lf = fopen(as -> listfile, "w"); | 61 lf = fopen(as -> listfile, "w"); |