Be explicit that we don't want a result from this callback. The callback would
authorRussell Bryant <russell@russellbryant.com>
Mon, 4 Aug 2008 15:02:12 +0000 (15:02 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 4 Aug 2008 15:02:12 +0000 (15:02 +0000)
never indicate a match, so nothing would have been returned anyway, but it was
still a poor example of proper usage.

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

channels/chan_console.c

index 10f77fd..6924ade 100644 (file)
@@ -1402,7 +1402,7 @@ static int load_config(int reload)
                return -1;
        }
        
-       ao2_callback(pvts, 0, pvt_mark_destroy_cb, NULL);
+       ao2_callback(pvts, OBJ_NODATA, pvt_mark_destroy_cb, NULL);
 
        ast_mutex_lock(&globals_lock);
        for (v = ast_variable_browse(cfg, "general"); v; v = v->next)