gst/subparse/samiparse.c: Don't ignore return value of strtol (++compiler_happiness).
Original commit message from CVS: * gst/subparse/samiparse.c: (handle_start_font): Don't ignore return value of strtol (++compiler_happiness).
This commit is contained in:
parent
7b7a6d12f5
commit
320a2f974a
@ -1,3 +1,8 @@
|
|||||||
|
2006-05-18 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/subparse/samiparse.c: (handle_start_font):
|
||||||
|
Don't ignore return value of strtol (++compiler_happiness).
|
||||||
|
|
||||||
2006-05-17 Tim-Philipp Müller <tim at centricular dot net>
|
2006-05-17 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
Patch by: Young-Ho Cha <ganadist chollian net>
|
Patch by: Young-Ho Cha <ganadist chollian net>
|
||||||
|
@ -168,8 +168,9 @@ handle_start_font (GstSamiContext * sctx, const xmlChar ** atts)
|
|||||||
if (!(*value == '#' && len == 7)) {
|
if (!(*value == '#' && len == 7)) {
|
||||||
gchar *r;
|
gchar *r;
|
||||||
|
|
||||||
strtol ((const char *) value, &r, 16); /* trying onvert hex */
|
/* check if it looks like hex */
|
||||||
if (((xmlChar *) r == (value + 6) && len == 6)) {
|
if (strtol ((const char *) value, &r, 16) >= 0 &&
|
||||||
|
((xmlChar *) r == (value + 6) && len == 6)) {
|
||||||
sharp = "#";
|
sharp = "#";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user