Add null terminator to string pointers (#77)
This commit is contained in:
parent
3bd9b5c8cd
commit
fdab43bee7
|
|
@ -11,6 +11,9 @@
|
|||
# Sublime Text 2
|
||||
*.sublime-workspace
|
||||
|
||||
# Idea stuff
|
||||
.idea/
|
||||
|
||||
# Subversion
|
||||
.svn/
|
||||
|
||||
|
|
|
|||
|
|
@ -502,8 +502,8 @@ void assertAnalyzerWarningsDMD(string code, const StaticAnalysisConfig config, b
|
|||
|
||||
global.params.useUnitTests = true;
|
||||
global.path = new Strings();
|
||||
global.path.push((dmdParentDir ~ "/dmd").ptr);
|
||||
global.path.push((dmdParentDir ~ "/dmd/druntime/src").ptr);
|
||||
global.path.push((dmdParentDir ~ "/dmd" ~ "\0").ptr);
|
||||
global.path.push((dmdParentDir ~ "/dmd/druntime/src" ~ "\0").ptr);
|
||||
|
||||
initDMD();
|
||||
|
||||
|
|
|
|||
|
|
@ -405,8 +405,8 @@ bool analyze(string[] fileNames, const StaticAnalysisConfig config, string error
|
|||
|
||||
global.params.useUnitTests = true;
|
||||
global.path = new Strings();
|
||||
global.path.push((dmdParentDir ~ "/dmd").ptr);
|
||||
global.path.push((dmdParentDir ~ "/dmd/druntime/src").ptr);
|
||||
global.path.push((dmdParentDir ~ "/dmd" ~ "\0").ptr);
|
||||
global.path.push((dmdParentDir ~ "/dmd/druntime/src" ~ "\0").ptr);
|
||||
|
||||
initDMD();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue