summaryrefslogtreecommitdiff
path: root/mysys/my_getwd.c
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2010-08-14 18:44:45 +0400
committerSergei Golubchik <sergii@pisem.net>2010-08-14 18:44:45 +0400
commitb87a73773913ebdcfdacb2d8b8704958bc0e93f2 (patch)
tree1636e773207a6da074b02078e40de9bbeddc8a3e /mysys/my_getwd.c
parent5cde0ca744b72dfd36f4ed0a13269b1d3f48de54 (diff)
downloadmariadb-git-b87a73773913ebdcfdacb2d8b8704958bc0e93f2.tar.gz
missing DBUG_RETURNs
Diffstat (limited to 'mysys/my_getwd.c')
-rw-r--r--mysys/my_getwd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mysys/my_getwd.c b/mysys/my_getwd.c
index e6b867e2753..a18c296a7e1 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