Module: sip-router
Branch: master
Commit: 220f00d67cb8eac370aeb97b763f9236e0d3cb5f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=220f00d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Jun 27 23:05:13 2009 +0200
kex: init uptime value for mi cmd
---
modules_k/kex/mi_core.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules_k/kex/mi_core.c b/modules_k/kex/mi_core.c
index 9714d1f..7d9a09c 100644
--- a/modules_k/kex/mi_core.c
+++ b/modules_k/kex/mi_core.c
@@ -58,8 +58,8 @@
#define SVNREVISION "unknown"
#endif
-static time_t kmi_up_since;
-static str kmi_up_since_ctime;
+static time_t kmi_up_since = 0;
+static str kmi_up_since_ctime = {0, 0};
static cfg_ctx_t *_kex_cfg_ctx = NULL;
static int init_mi_uptime(void)
@@ -382,5 +382,9 @@ int init_mi_core(void)
return -1;
}
+ if(init_mi_uptime()<0) {
+ return -1;
+ }
+
return 0;
}