diff options
author | crunchy <crunchy> | 2002-10-13 19:46:51 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-10-13 19:46:51 +0000 |
commit | 5d20582ad06f7ba99695b6b52b8003689525173f (patch) | |
tree | f3f280f2440bdcc6ba6a42da67b5175e102fb8fe /mpiosh/readline.c | |
parent | 11b515c88cb96b5bbe4a02fc7d8285cb77f2afe1 (diff) | |
download | mpiosh-5d20582ad06f7ba99695b6b52b8003689525173f.tar.gz mpiosh-5d20582ad06f7ba99695b6b52b8003689525173f.tar.bz2 mpiosh-5d20582ad06f7ba99695b6b52b8003689525173f.zip |
fixed crash + clean up
Diffstat (limited to 'mpiosh/readline.c')
-rw-r--r-- | mpiosh/readline.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mpiosh/readline.c b/mpiosh/readline.c index 5427b9f..cbff0a9 100644 --- a/mpiosh/readline.c +++ b/mpiosh/readline.c @@ -2,7 +2,7 @@ * * Author: Andreas Büsching <crunchy@tzi.de> * - * $Id: readline.c,v 1.2 2002/10/12 20:06:22 crunchy Exp $ + * $Id: readline.c,v 1.3 2002/10/13 19:46:51 crunchy Exp $ * * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de> * @@ -90,6 +90,11 @@ mpiosh_readline_comp_mpio_file(const char *text, int state) WORD year; DWORD fsize; + if (mpiosh.dev == NULL) { + rl_attempted_completion_over = 1; + return NULL; + } + if (state == 0) p = mpio_directory_open(mpiosh.dev, mpiosh.card); while ((p != NULL) && (arg == NULL)) { |