提交 24abf6c9 编写于 作者: D Daniel Veillard

* src/conf.c: fix bug on negative values in virConfParseLong()

  raised by Tatsuro Enokura
Daniel
上级 69b9fcf2
Fri Oct 19 11:59:39 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/conf.c: fix bug on negative values in virConfParseLong()
raised by Tatsuro Enokura
Fri Oct 19 10:24:52 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/conf.c: documentation cleanups from Jim Meyering
......
......@@ -345,6 +345,8 @@ virConfParseLong(virConfParserCtxtPtr ctxt, long *val)
l = l * 10 + (CUR - '0');
NEXT;
}
if (neg)
l = -l;
*val = l;
return(0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册