summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_dirent.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-09-16 09:35:44 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-09-16 09:35:44 +0000
commitccd8d0fde164448b6258d9de3574e52374edc829 (patch)
treec955d352994cbd1cd500768dfe64f31e35ecfd9a /ACE/ace/OS_NS_dirent.cpp
parent7c4c934daf46588a0afbc2cf974fdc8946d49815 (diff)
downloadATCD-ccd8d0fde164448b6258d9de3574e52374edc829.tar.gz
Diffstat (limited to 'ACE/ace/OS_NS_dirent.cpp')
-rw-r--r--ACE/ace/OS_NS_dirent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/OS_NS_dirent.cpp b/ACE/ace/OS_NS_dirent.cpp
index b8c3f3401a6..d9d05b0b2d6 100644
--- a/ACE/ace/OS_NS_dirent.cpp
+++ b/ACE/ace/OS_NS_dirent.cpp
@@ -41,11 +41,11 @@ ACE_DIR *
ACE_OS::opendir_emulation (const ACE_TCHAR *filename)
{
#if defined (ACE_WIN32)
-# if defined (ACE_HAS_WINCE) && !defined (INVALID_FILE_ATTRIBUTES)
+# if !defined (INVALID_FILE_ATTRIBUTES)
# define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF
# endif
- ACE_DIR *dir;
+ ACE_DIR *dir = 0;
ACE_TCHAR extra[3] = {0,0,0};
// Check if filename is a directory.
@@ -72,7 +72,7 @@ ACE_OS::opendir_emulation (const ACE_TCHAR *filename)
Phil Mesnier
*/
- size_t lastchar = ACE_OS::strlen (filename);
+ size_t const lastchar = ACE_OS::strlen (filename);
if (lastchar > 0)
{
if (filename[lastchar-1] != '*')