projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed0e00
)
zzjson: Avoid printing empty line after each print
author
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 23 Mar 2011 22:01:59 +0000
(23:01 +0100)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 23 Mar 2011 22:01:59 +0000
(23:01 +0100)
This is useless and generates confusing outputs
com32/gpllib/zzjson/zzjson_print.c
patch
|
blob
|
history
diff --git
a/com32/gpllib/zzjson/zzjson_print.c
b/com32/gpllib/zzjson/zzjson_print.c
index
8a274c3
..
a59b3b0
100644
(file)
--- a/
com32/gpllib/zzjson/zzjson_print.c
+++ b/
com32/gpllib/zzjson/zzjson_print.c
@@
-102,7
+102,7
@@
static int zzjson_print2(ZZJSON_CONFIG *config, ZZJSON *zzjson,
int zzjson_print(ZZJSON_CONFIG *config, ZZJSON *zzjson) {
int retval = zzjson_print2(config, zzjson, 0, 0);
- if (retval >= 0) retval = config->putchar('\n', config->ohandle);
+
//
if (retval >= 0) retval = config->putchar('\n', config->ohandle);
#ifndef CONFIG_NO_ERROR_MESSAGES
if (retval < 0) config->error(config->ehandle, "print: unable to print");
#endif