Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Chip Salzenberg
Wed, 11 Oct 1989 15:56
GNU Make 3.56: Core dump fix for opts with args
Author: Chip Salzenberg
Date: Wed, 11 Oct 1989 15:56
Date: Wed, 11 Oct 1989 15:56
45 lines
1371 bytes
1371 bytes
[BUG FIX]
Fix core dump bug when a command line option that is _supposed_ to be
followed by an argument, isn't.
Index: main.c
***************
*** 909,913 ****
break;
case string:
! if (*sw == '\0')
arg = argv[++i];
else
--- 930,934 ----
break;
case string:
! if ((*sw == '\0') && (i + 1) < argc)
arg = argv[++i];
else
***************
*** 943,947 ****
case positive_int:
! if (*sw == '\0')
arg = argv[++i];
else
--- 964,968 ----
case positive_int:
! if ((*sw == '\0') && (i + 1) < argc)
arg = argv[++i];
else
***************
*** 979,983 ****
case floating:
! if (*sw == '\0')
arg = argv[++i];
else
--- 1000,1004 ----
case floating:
! if ((*sw == '\0') && (i + 1) < argc)
arg = argv[++i];
else
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads