From 2581270527e949b8b1fd7bb072abd7193869fc6d Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 8 Jan 2013 10:40:59 -0500 Subject: [PATCH] openvz: Need to initialize 'ret' for kb_per_pages error path --- src/openvz/openvz_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 09518d52fa..1ad3febaa7 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -485,7 +485,7 @@ error: static int openvzReadMemConf(virDomainDefPtr def, int veid) { - int ret; + int ret = -1; char *temp = NULL; unsigned long long barrier, limit; const char *param;