aboutsummaryrefslogtreecommitdiff
path: root/any_sexp.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-06-06 21:40:59 +0200
committerFederico Angelilli <code@fedang.net>2024-06-06 21:40:59 +0200
commit180c90e48f1d24352d25965a6d880b762c0c4d84 (patch)
tree19f04b6e441f11e59b8240da08c8329a371dfa81 /any_sexp.h
parentcedba71598af986e74fd04f3bee335c7037ea03f (diff)
Add custom type format to log_value
Diffstat (limited to 'any_sexp.h')
-rw-r--r--any_sexp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/any_sexp.h b/any_sexp.h
index 534c455..31aa2c0 100644
--- a/any_sexp.h
+++ b/any_sexp.h
@@ -377,7 +377,7 @@ any_sexp_t any_sexp_read(any_sexp_reader_t *reader)
static int any_sexp_writer_puts(any_sexp_writer_t *writer, const char *string)
{
int i;
- for (i = 0; string[i] != '\0', i++) {
+ for (i = 0; string[i] != '\0'; i++) {
if (writer->putc(string[i], writer->stream) == EOF)
return EOF;
}