more minor fixes thanks Julian on pointing out

potential problems


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matt O'Gorman 2006-06-01 18:48:22 +00:00
parent 4508c9fcc0
commit fa339925dc
1 changed files with 3 additions and 3 deletions

View File

@ -342,9 +342,7 @@ static int aji_status_exec(struct ast_channel *chan, void *data)
if (!strcasecmp(iterator->user, screenname)) {
found = 1;
r = iterator->resources;
if (!r) { /* client hasnt signed on */
break;
} else {
if (r) { /* client has signed on */
if (resource) {
while (r) {
if (!strcasecmp(r->resource, resource)) {
@ -353,7 +351,9 @@ static int aji_status_exec(struct ast_channel *chan, void *data)
}
r = r->next;
}
if(stat != 7) break;
ast_log(LOG_WARNING, "Resource not found %s\n", resource);
break;
} else {
stat = r->status;
break;