fixed initialization of 'vserver'
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 23 Mar 2005 02:05:23 +0000 (02:05 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 23 Mar 2005 02:05:23 +0000 (02:05 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1962 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib_internal/matchlist-initrefserverlist.c

index 2656671..5ed9997 100644 (file)
@@ -69,14 +69,14 @@ MatchList_initRefserverList(struct MatchList **lst, size_t *cnt,
       .use_pkgmgmt = true
     };
 
+    memcpy(vname,   "./", 2);
+    memcpy(vname+2, tmp,  l+1);
+    
     if (!MatchVserverInfo_init(&vserver)) {
       WRITE_MSG(2, "failed to initialize unification of reference vserver\n");
       exit(1);
     }
 
-    memcpy(vname,   "./", 2);
-    memcpy(vname+2, tmp,  l+1);
-    
     if (!MatchList_initByVserver((*lst)+i, &vserver)) {
       WRITE_MSG(2, "unification for reference vserver not configured\n");
       exit(1);