mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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>
|
Fri Oct 19 10:24:52 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/conf.c: documentation cleanups from Jim Meyering
|
* src/conf.c: documentation cleanups from Jim Meyering
|
||||||
|
@ -345,6 +345,8 @@ virConfParseLong(virConfParserCtxtPtr ctxt, long *val)
|
|||||||
l = l * 10 + (CUR - '0');
|
l = l * 10 + (CUR - '0');
|
||||||
NEXT;
|
NEXT;
|
||||||
}
|
}
|
||||||
|
if (neg)
|
||||||
|
l = -l;
|
||||||
*val = l;
|
*val = l;
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user