MODAPP-407

This commit is contained in:
Rupa Schomaker 2010-04-07 12:23:57 -05:00
parent 4e44c977d7
commit 3f4ca2d3ac
1 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,10 @@ SWITCH_STANDARD_API(group_api_function)
limit_execute_sql_callback(sql, group_callback, &cbt);
switch_safe_free(sql);
*(buf + (strlen(buf) - 1)) = '\0';
if (!zstr(buf)) {
*(buf + (strlen(buf) - 1)) = '\0';
}
stream->write_function(stream, "%s", buf);
goto done;