(krb5_program_setup): always initialize the context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6464 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -59,8 +59,7 @@ krb5_program_setup(krb5_context *context, int argc, char **argv,
|
|||||||
usage = krb5_std_usage;
|
usage = krb5_std_usage;
|
||||||
|
|
||||||
set_progname(argv[0]);
|
set_progname(argv[0]);
|
||||||
if(*context == NULL)
|
krb5_init_context(context);
|
||||||
krb5_init_context(context);
|
|
||||||
|
|
||||||
if(getarg(args, num_args, argc, argv, &optind))
|
if(getarg(args, num_args, argc, argv, &optind))
|
||||||
(*usage)(1, args, num_args);
|
(*usage)(1, args, num_args);
|
||||||
|
Reference in New Issue
Block a user