X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogrambuilder.cpp;h=30457838e89bae1270ff3648a79250624a82d69e;hb=5281356f7e81ffed6337d3ac67c0e8d3e1605000;hp=c97ec1cb490b1943e38f58544a522a6a22349b99;hpb=1cd9239578c0073cd33de9ec96bf94ac1eafcc36;p=libs%2Fgl.git diff --git a/source/programbuilder.cpp b/source/programbuilder.cpp index c97ec1cb..30457838 100644 --- a/source/programbuilder.cpp +++ b/source/programbuilder.cpp @@ -375,7 +375,8 @@ vector ProgramBuilder::extract_identifiers(const char *expression) { vector result; const char *ptr = expression; - unsigned start, length; + unsigned start = 0; + unsigned length = 0; while(parse_identifier(ptr, start, length)) { result.push_back(string(ptr+start, length)); @@ -388,7 +389,8 @@ string ProgramBuilder::replace_identifiers(const char *expression, const map