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

raised by Tatsuro Enokura
Daniel
This commit is contained in:
Daniel Veillard 2007-10-19 10:01:01 +00:00
parent 69b9fcf297
commit 24abf6c925
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -345,6 +345,8 @@ virConfParseLong(virConfParserCtxtPtr ctxt, long *val)
l = l * 10 + (CUR - '0');
NEXT;
}
if (neg)
l = -l;
*val = l;
return(0);
}