summaryrefslogtreecommitdiff
path: root/doc/examples/testWriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/testWriter.c')
-rw-r--r--doc/examples/testWriter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/testWriter.c b/doc/examples/testWriter.c
index c5e9c39..e158f97 100644
--- a/doc/examples/testWriter.c
+++ b/doc/examples/testWriter.c
@@ -1168,8 +1168,8 @@ ConvertInput(const char *in, const char *encoding)
if (out != 0) {
temp = size - 1;
ret = handler->input(out, &out_size, (const xmlChar *) in, &temp);
- if (ret || temp - size + 1) {
- if (ret) {
+ if ((ret < 0) || (temp - size + 1)) {
+ if (ret < 0) {
printf("ConvertInput: conversion wasn't successful.\n");
} else {
printf