[libvirt] [PATCHv2 01/11] don't modify CPU set string in virDomainCpuSetParse

Hu Tao hutao at cn.fujitsu.com
Thu Nov 17 09:44:11 UTC 2011


As the function only parses the CPU set string, there is
no good reason to modify it.
---
 src/conf/domain_conf.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 6b78d97..71eb209 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -9163,7 +9163,6 @@ virDomainCpuSetParse(const char **str, char sep,
         } else
             goto parse_error;
     }
-    *str = cur;
     return (ret);
 
   parse_error:
-- 
1.7.3.1




More information about the libvir-list mailing list