Kyle Evans 43fbd65451 diff: fix segfault with --tabsize and no/malformed argument
--tabsize was previously listed as optional_argument, but didn't account for
the optionality of it in the argument handling. This is irrelevant -- the
manpage doesn't indicate that the argument is optional, and indeed there's
no clear interpretation of omitting the argument because there's no other
side effect of --tabsize.

The "malformed" argument part of the header on this message is simply
referring to usage like this:

% diff --tabsize 4 A B

With an optional_argument, the argument must be attached to the parameter
directly (e.g. --tabsize=4), so the argument is effectively NULL with the
above invocation as if no argument had been passed.

PR:		243974
Submitted by:	fehmi noyan isi <fnoyanisi yahoo com> (diff.c portion)
MFC after:	3 days
2020-02-13 20:23:55 +00:00
..
2019-01-12 12:35:02 +00:00
2018-12-23 01:05:52 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 00:16:56 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 00:16:56 +00:00
2019-07-19 15:10:53 +00:00
2019-10-26 17:10:27 +00:00
2018-04-25 18:56:27 +00:00
2019-01-28 02:00:39 +00:00
2019-10-28 21:48:20 +00:00
2019-12-07 20:01:55 +00:00
2019-04-22 17:52:46 +00:00
2020-01-13 16:52:26 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-08-25 01:05:01 +00:00
2019-11-12 22:31:59 +00:00
2019-06-29 18:41:40 +00:00
2019-09-09 15:37:40 +00:00
2018-11-04 16:58:55 +00:00
2019-12-11 17:37:53 +00:00
2018-11-20 00:06:53 +00:00
2020-01-16 21:38:44 +00:00
2019-12-11 17:37:53 +00:00
2018-07-03 19:09:46 +00:00
2018-06-25 11:44:56 +00:00
2019-12-10 19:16:00 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-05-01 19:35:45 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-02-21 15:08:25 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 00:16:56 +00:00
2019-12-11 17:37:53 +00:00
2019-10-03 20:22:25 +00:00
2018-05-04 14:39:32 +00:00
2018-03-29 02:13:58 +00:00
2018-07-29 07:51:42 +00:00
2020-02-07 19:53:07 +00:00
2019-11-20 19:43:34 +00:00
2018-11-12 07:14:34 +00:00
2019-07-19 20:04:31 +00:00
2019-08-23 16:03:23 +00:00
2020-01-25 21:16:45 +00:00
2019-04-19 02:54:13 +00:00
2020-02-06 17:52:16 +00:00