char *inbuf = (char*)alloca(strlen(in) + 1);
strcpy(inbuf, in);
- in = clean_line(inbuf);
+ if(!(in = clean_line(inbuf))) {
+ if(buf && bsz > 0) {
+ buf[0] = 0;
+ }
+ return 0;
+ }
// first check the cache
std::map<std::string, std::string>::iterator it = cache.find(in);