make work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24347 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -135,7 +135,7 @@ main(int argc, char **argv)
|
|||||||
FILE *opt;
|
FILE *opt;
|
||||||
|
|
||||||
opt = fopen(option_file, "r");
|
opt = fopen(option_file, "r");
|
||||||
if (opt) {
|
if (opt == NULL) {
|
||||||
perror("open");
|
perror("open");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@@ -166,7 +166,7 @@ main(int argc, char **argv)
|
|||||||
if(getarg(args, num_args, len, arg, &optidx))
|
if(getarg(args, num_args, len, arg, &optidx))
|
||||||
usage(1);
|
usage(1);
|
||||||
|
|
||||||
if (len == optidx) {
|
if (len != optidx) {
|
||||||
fprintf(stderr, "extra args");
|
fprintf(stderr, "extra args");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user