From 7d0ac6440939ca38cf2f7be89c856f76b0fb9f9a Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Tue, 2 Feb 2016 11:46:22 +1000 Subject: aio: Fix crash in aio copy Fix incorrect check for target as invalid filehandle. e.g. stdin copy blah Signed-off-by: Steve Bennett --- jim-aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jim-aio.c') diff --git a/jim-aio.c b/jim-aio.c index 87834a7..1ac3b56 100644 --- a/jim-aio.c +++ b/jim-aio.c @@ -591,7 +591,7 @@ static int aio_cmd_copy(Jim_Interp *interp, int argc, Jim_Obj *const *argv) jim_wide maxlen = JIM_WIDE_MAX; AioFile *outf = Jim_AioFile(interp, argv[0]); - if (outf->fp == NULL) { + if (outf == NULL) { return JIM_ERR; } -- cgit v1.1