diff lwasm/main.c @ 106:43a3f1068027

Adjustments for list code
author lost@l-w.ca
date Sat, 06 Aug 2011 23:20:45 -0600
parents ed7f970f3688
children 1824cabf25ce
line wrap: on
line diff
--- a/lwasm/main.c	Sat Aug 06 23:20:10 2011 -0600
+++ b/lwasm/main.c	Sat Aug 06 23:20:45 2011 -0600
@@ -62,7 +62,7 @@
 static int parse_opts(int key, char *arg, void *state)
 {
 	asmstate_t *as = state;
-	
+
 	switch (key)
 	{
 	case 'I':
@@ -107,7 +107,7 @@
 		if (as -> list_file)
 			lw_free(as -> list_file);
 		if (!arg)
-			as -> list_file = NULL;
+			as -> list_file = lw_strdup("-");
 		else
 			as -> list_file = lw_strdup(arg);
 		as -> flags |= FLAG_LIST;