summaryrefslogtreecommitdiff
path: root/mysys/my_lib.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-08 17:40:55 +0200
committermonty@hundin.mysql.fi <>2001-11-08 17:40:55 +0200
commit578ab3f1b155e0ab8dbd85855634b70b0fd7d6bb (patch)
treecb005569617a6db74c8736b4dd5f2fe61eea20f0 /mysys/my_lib.c
parent5f405e28af1fa539440c1737fb67ec64611e368b (diff)
downloadmariadb-git-578ab3f1b155e0ab8dbd85855634b70b0fd7d6bb.tar.gz
new crash-me results for Interbase.
Diffstat (limited to 'mysys/my_lib.c')
-rw-r--r--mysys/my_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_lib.c b/mysys/my_lib.c
index 55bd42381da..5e9093d0124 100644
--- a/mysys/my_lib.c
+++ b/mysys/my_lib.c
@@ -112,6 +112,10 @@ MY_DIR *my_dir(const char *path, myf MyFlags)
dirp = opendir(directory_file_name(tmp_path,(my_string) path));
size = STARTSIZE;
+#if defined(__amiga__)
+ if ((dirp->dd_fd) < 0) /* Directory doesn't exists */
+ goto error;
+#endif
if (dirp == NULL || ! (buffer = (char *) my_malloc(size, MyFlags)))
goto error;