diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-04 08:59:55 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-04 08:59:55 +0100 |
commit | 926be456b4316012e12c05a82f56637ce920397b (patch) | |
tree | 8ea8e93700aa8022267d8b303081d1393a9851d0 /css/dump.c | |
parent | 848f3d13ca50d156a20131829b3df29210097ba4 (diff) | |
download | netsurf-926be456b4316012e12c05a82f56637ce920397b.tar.gz netsurf-926be456b4316012e12c05a82f56637ce920397b.tar.bz2 |
check the return codes from css increment and reset
Diffstat (limited to 'css/dump.c')
-rw-r--r-- | css/dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/css/dump.c b/css/dump.c index 1fe887400..1b4d126ca 100644 --- a/css/dump.c +++ b/css/dump.c @@ -576,7 +576,7 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style) /* counter-increment */ val = css_computed_counter_increment(style, &counter); - if (counter == NULL) { + if ((val == CSS_COUNTER_INCREMENT_NONE) || (counter == NULL)) { fprintf(stream, "counter-increment: none "); } else { fprintf(stream, "counter-increment:"); @@ -596,7 +596,7 @@ void nscss_dump_computed_style(FILE *stream, const css_computed_style *style) /* counter-reset */ val = css_computed_counter_reset(style, &counter); - if (counter == NULL) { + if ((val = CSS_COUNTER_RESET_NONE) || (counter == NULL)) { fprintf(stream, "counter-reset: none "); } else { fprintf(stream, "counter-reset:"); |