cleanup for valgrind.
This commit is contained in:
parent
de55071aad
commit
3d246063e5
4
Tag.h
4
Tag.h
@ -23,8 +23,8 @@ namespace jet {
|
|||||||
Tag *local;
|
Tag *local;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool hasContainer;
|
bool hasContainer = false;
|
||||||
bool hasContainer2;
|
bool hasContainer2 = false;
|
||||||
bool variableDefined(coreutils::ZString variable);
|
bool variableDefined(coreutils::ZString variable);
|
||||||
void parseContainer(coreutils::ZString &in, coreutils::MString &out);
|
void parseContainer(coreutils::ZString &in, coreutils::MString &out);
|
||||||
void processContainer(coreutils::ZString &container);
|
void processContainer(coreutils::ZString &container);
|
||||||
|
@ -15,6 +15,8 @@ namespace jet {
|
|||||||
if(!variableDefined("pgm"))
|
if(!variableDefined("pgm"))
|
||||||
throw coreutils::Exception("pgm keyword must be specified.");
|
throw coreutils::Exception("pgm keyword must be specified.");
|
||||||
resolveKeyword("pgm");
|
resolveKeyword("pgm");
|
||||||
|
for(ix = 0; ix <= 50; ++ix)
|
||||||
|
argv[ix] = NULL;
|
||||||
argv[0] = variables["pgm"].c_str(); // TODO: Need to peel off the program name only and pass as argv[0].
|
argv[0] = variables["pgm"].c_str(); // TODO: Need to peel off the program name only and pass as argv[0].
|
||||||
for(ix = 1; ix <= 50; ++ix) {
|
for(ix = 1; ix <= 50; ++ix) {
|
||||||
coreutils::MString arg("arg");
|
coreutils::MString arg("arg");
|
||||||
@ -25,7 +27,6 @@ namespace jet {
|
|||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
argv[ix] == NULL;
|
|
||||||
pipe(fdo);
|
pipe(fdo);
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if(pid == 0) {
|
if(pid == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user