diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-05 03:39:32 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-05 03:39:32 +0000 |
commit | aa0050194759e411b2f9f39713330dae0bb138af (patch) | |
tree | eddd409c477aada356b57c7d48d691391d462349 /res/res_jabber.c | |
parent | 6ce2df8c8e001b6a10e55bc879180eb13eebab2b (diff) |
Merged revisions 57770 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r57770 | file | 2007-03-04 22:35:03 -0500 (Sun, 04 Mar 2007) | 2 lines
Don't reference a potentially NULL pointer. (issue #9199 reported by klolik)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57771 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r-- | res/res_jabber.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index b47add708..afad72c35 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -383,7 +383,8 @@ static int aji_status_exec(struct ast_channel *chan, void *data) r = buddy->resources; if(!r) ast_log(LOG_NOTICE, "Resource %s of buddy %s not found \n", resource, screenname); - stat = r->status; + else + stat = r->status; sprintf(status, "%d", stat); pbx_builtin_setvar_helper(chan, variable, status); return 0; |