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