[llvm-commits] [llvm] r118096 - /llvm/trunk/lib/System/Unix/Path.inc
Dan Gohman
gohman at apple.com
Tue Nov 2 15:41:19 PDT 2010
Author: djg
Date: Tue Nov 2 17:41:19 2010
New Revision: 118096
URL: http://llvm.org/viewvc/llvm-project?rev=118096&view=rev
Log:
Use '\0' instead of 0 for nul character constants.
Modified:
llvm/trunk/lib/System/Unix/Path.inc
Modified: llvm/trunk/lib/System/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Path.inc?rev=118096&r1=118095&r2=118096&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Path.inc (original)
+++ llvm/trunk/lib/System/Unix/Path.inc Tue Nov 2 17:41:19 2010
@@ -693,7 +693,7 @@
if (pathname[lastchar] != '/')
++lastchar;
- pathname[lastchar] = 0;
+ pathname[lastchar] = '\0';
if (createDirectoryHelper(pathname, pathname+lastchar, create_parents))
return MakeErrMsg(ErrMsg,
@@ -766,9 +766,9 @@
path.copy(pathname, MAXPATHLEN);
size_t lastchar = path.length() - 1;
if (pathname[lastchar] == '/')
- pathname[lastchar] = 0;
+ pathname[lastchar] = '\0';
else
- pathname[lastchar+1] = 0;
+ pathname[lastchar+1] = '\0';
if (rmdir(pathname) != 0)
return MakeErrMsg(ErrStr,
More information about the llvm-commits
mailing list