From: Enrico Scholz Date: Sat, 29 Oct 2005 12:09:49 +0000 (+0000) Subject: fillName(): initialize 'obj->cfgstyle' to vcCFG_AUTO X-Git-Tag: version_0_30_210~68 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9f076fe087178c44d65ee1471b440bb35580382;p=util-vserver.git fillName(): initialize 'obj->cfgstyle' to vcCFG_AUTO git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2213 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/vserver-stat.c b/util-vserver/src/vserver-stat.c index b68b57c..6d78f9d 100644 --- a/util-vserver/src/vserver-stat.c +++ b/util-vserver/src/vserver-stat.c @@ -501,6 +501,8 @@ fillName(void *obj_v, void UNUSED * a) default : { char * cfgpath; + obj->cfgstyle = vcCFG_AUTO; + if ((cfgpath = vc_getVserverByCtx(obj->xid, &obj->cfgstyle, 0))==0 || (obj->name = vc_getVserverName(cfgpath, obj->cfgstyle))==0) { obj->name = 0;