Resolve a warning from gcc 4.4.1.
[asterisk/asterisk.git] / main / manager.c
index 17f487f..a5fc427 100644 (file)
@@ -1143,10 +1143,12 @@ static struct ast_manager_user *get_manager_by_name_locked(const char *name)
 {
        struct ast_manager_user *user = NULL;
 
-       AST_RWLIST_TRAVERSE(&users, user, list)
+       AST_RWLIST_TRAVERSE(&users, user, list) {
                if (!strcasecmp(user->username, name)) {
                        break;
                }
+       }
+
        return user;
 }