diff options
Diffstat (limited to 'g10/import.c')
-rw-r--r-- | g10/import.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c index 88177a533..78a1cfc8a 100644 --- a/g10/import.c +++ b/g10/import.c @@ -115,6 +115,9 @@ import_keys( char **fnames, int nnames, int fast ) /* fixme: don't use static variables */ memset( &stats, 0, sizeof( stats ) ); + if( !fnames && !nnames ) + nnames = 1; /* Ohh what a ugly hack to jump into the loop */ + for(i=0; i < nnames; i++ ) { const char *fname = fnames? fnames[i] : NULL; IOBUF inp = iobuf_open(fname); |