asdfuser pushed a commit to branch master.

commit 7b88439346ce48b4d436d961dc8d7d7ad6d3281a
Author: Guillaume Friloux <[email protected]>
Date:   Fri May 24 14:06:08 2013 +0200

    cl->start_time isnt initialized, so ecore_con_client_uptime_get() just 
doesnt work. This patch fixes it. Bug found by asdfuser.
---
 src/lib/ecore_con/ecore_con.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 57f278e..76550ee 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -1116,6 +1116,7 @@ ecore_con_event_client_add(Ecore_Con_Client *cl)
    cl->event_count = eina_list_append(cl->event_count, e);
    cl->host_server->event_count = 
eina_list_append(cl->host_server->event_count, e);
    _ecore_con_cl_timer_update(cl);
+   cl->start_time = ecore_time_get();
    e->client = cl;
    if (cl->upgrade) ev = ECORE_CON_EVENT_CLIENT_UPGRADE;
    ecore_event_add(ev, e,

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to