summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-04 12:50:43 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-04 12:50:43 +0200
commit0d0ad37da1b581197e5c352660105bcc2eb97daf (patch)
tree06006fa48953b0bce15e38c767276600dca63f1f /source
parentLogging OnBlockDig and OnBlockPlace only in Debug mode ( http://mc-server.org/support/index.php?do=details&task_id=133&project=2 ) (diff)
downloadcuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.tar
cuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.tar.gz
cuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.tar.bz2
cuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.tar.lz
cuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.tar.xz
cuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.tar.zst
cuberite-0d0ad37da1b581197e5c352660105bcc2eb97daf.zip
Diffstat (limited to '')
-rw-r--r--source/StringUtils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/StringUtils.cpp b/source/StringUtils.cpp
index 1e629c25f..46c20b3d8 100644
--- a/source/StringUtils.cpp
+++ b/source/StringUtils.cpp
@@ -182,9 +182,13 @@ AStringList GetDirectoryContents(const char * a_Directory)
DIR * dp;
struct dirent *dirp;
+ if (*a_Directory == 0)
+ {
+ a_Directory = ".";
+ }
if ((dp = opendir(a_Directory)) == NULL)
{
- LOGERROR("Error (%i) opening %s\n", errno, a_Directory );
+ LOGERROR("Error (%i) opening directory \"%s\"\n", errno, a_Directory );
}
else
{