mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
* src/conf.c: fix bug on negative values in virConfParseLong()
raised by Tatsuro Enokura Daniel
This commit is contained in:
parent
69b9fcf297
commit
24abf6c925
@ -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
|
||||
|
@ -345,6 +345,8 @@ virConfParseLong(virConfParserCtxtPtr ctxt, long *val)
|
||||
l = l * 10 + (CUR - '0');
|
||||
NEXT;
|
||||
}
|
||||
if (neg)
|
||||
l = -l;
|
||||
*val = l;
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user