diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-05-11 20:10:52 +0400 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-05-11 20:10:52 +0400 |
commit | 6fff8966772190bcc563ca4f2d149dec587a532b (patch) | |
tree | 784056927c1b3a5ad55fb8cf904d563c1d035d0c /mysys/my_getwd.c | |
parent | e118ec409f15dcc3e8fd74b4b20dd2279fb1321d (diff) | |
download | mariadb-git-6fff8966772190bcc563ca4f2d149dec587a532b.tar.gz |
Fixed loaddata failures on some platforms in PB2.
Diffstat (limited to 'mysys/my_getwd.c')
-rw-r--r-- | mysys/my_getwd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mysys/my_getwd.c b/mysys/my_getwd.c index 75bb6e20911..4182ea9826f 100644 --- a/mysys/my_getwd.c +++ b/mysys/my_getwd.c @@ -51,7 +51,7 @@ int my_getwd(char * buf, size_t size, myf MyFlags) (long) buf, (uint) size, MyFlags)); if (size < 1) - return(-1); + DBUG_RETURN(-1); if (curr_dir[0]) /* Current pos is saved here */ (void) strmake(buf,&curr_dir[0],size-1); @@ -59,12 +59,12 @@ int my_getwd(char * buf, size_t size, myf MyFlags) { #if defined(HAVE_GETCWD) if (size < 2) - return(-1); + DBUG_RETURN(-1); if (!getcwd(buf,(uint) (size-2)) && MyFlags & MY_WME) { my_errno=errno; my_error(EE_GETWD,MYF(ME_BELL+ME_WAITTANG),errno); - return(-1); + DBUG_RETURN(-1); } #elif defined(HAVE_GETWD) { @@ -74,12 +74,12 @@ int my_getwd(char * buf, size_t size, myf MyFlags) } #elif defined(VMS) if (size < 2) - return(-1); + DBUG_RETURN(-1); if (!getcwd(buf,size-2,1) && MyFlags & MY_WME) { my_errno=errno; my_error(EE_GETWD,MYF(ME_BELL+ME_WAITTANG),errno); - return(-1); + DBUG_RETURN(-1); } intern_filename(buf,buf); #else |