diff options
author | unknown <monty@hundin.mysql.fi> | 2001-11-08 17:40:55 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-11-08 17:40:55 +0200 |
commit | b70dea90b72a620d312ed0e45e530485f504f191 (patch) | |
tree | cb005569617a6db74c8736b4dd5f2fe61eea20f0 /mysys/my_lib.c | |
parent | 23bd6bd1c64bab773b9de5f36985ee940de35b41 (diff) | |
download | mariadb-git-b70dea90b72a620d312ed0e45e530485f504f191.tar.gz |
new crash-me results for Interbase.
mysys/my_lib.c:
Fix for amiga
sql-bench/crash-me.sh:
Fix wrong comment when testing for transactions
Diffstat (limited to 'mysys/my_lib.c')
-rw-r--r-- | mysys/my_lib.c | 4 |
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; |