mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Merged revisions 146799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r146799 | tilghman | 2008-10-06 15:52:04 -0500 (Mon, 06 Oct 2008) | 8 lines Dialplan functions should not actually return 0, unless they have modified the workspace. To signal an error (and no change to the workspace), -1 should be returned instead. (closes issue #13340) Reported by: kryptolus Patches: 20080827__bug13340__2.diff.txt uploaded by Corydon76 (license 14) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -367,6 +367,7 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha
|
||||
if (res == SQL_NO_DATA) {
|
||||
ast_verb(4, "Found no rows [%s]\n", sql->str);
|
||||
res1 = 0;
|
||||
buf[0] = '\0';
|
||||
ast_copy_string(rowcount, "0", sizeof(rowcount));
|
||||
} else {
|
||||
ast_log(LOG_WARNING, "Error %d in FETCH [%s]\n", res, sql->str);
|
||||
@@ -517,6 +518,8 @@ end_acf_read:
|
||||
}
|
||||
odbc_store->data = resultset;
|
||||
ast_channel_datastore_add(chan, odbc_store);
|
||||
} else {
|
||||
buf[0] = '\0';
|
||||
}
|
||||
SQLCloseCursor(stmt);
|
||||
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
|
||||
|
Reference in New Issue
Block a user