Merged revisions 131012 via svnmerge from
authorMichiel van Baak <michiel@vanbaak.info>
Tue, 15 Jul 2008 17:49:48 +0000 (17:49 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Tue, 15 Jul 2008 17:49:48 +0000 (17:49 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131012 | mvanbaak | 2008-07-15 19:47:15 +0200 (Tue, 15 Jul 2008) | 7 lines

remove 4 lines of redundant code.

(closes issue #13080)
Reported by: gknispel_proformatique
Patches:
      trunk_ast_cdr_setapp.patch uploaded by gknispel (license 261)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@131013 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index 1600520..f8fc2c6 100644 (file)
@@ -781,10 +781,6 @@ void ast_cdr_setapp(struct ast_cdr *cdr, char *app, char *data)
        for (; cdr; cdr = cdr->next) {
                if (!ast_test_flag(cdr, AST_CDR_FLAG_LOCKED)) {
                        check_post(cdr);
-                       if (!app)
-                               app = "";
-                       if (!data)
-                               data = "";
                        ast_copy_string(cdr->lastapp, S_OR(app, ""), sizeof(cdr->lastapp));
                        ast_copy_string(cdr->lastdata, S_OR(data, ""), sizeof(cdr->lastdata));
                }