(print_arg): take care of impossible case.

(arg_match_long): initialize variables to get rid of warnings.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4201 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-12-15 00:01:19 +00:00
parent 80d8899459
commit aa6cce306f

View File

@@ -69,6 +69,8 @@ print_arg (FILE *stream, int mdoc, int longp, struct getargs *arg)
s = "number";
else if (arg->type == arg_string)
s = "string";
else
s = "<undefined>";
fprintf (stream, "%s", s);
return 1 + strlen(s);
@@ -245,8 +247,8 @@ arg_match_long(struct getargs *args, size_t num_args,
char *argv)
{
int i;
char *optarg;
int negate;
char *optarg = NULL;
int negate = 0;
int partial_match = 0;
struct getargs *partial = NULL;
struct getargs *current = NULL;