diff options
Diffstat (limited to 'examples/parse_text.c')
-rw-r--r-- | examples/parse_text.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/parse_text.c b/examples/parse_text.c index 67a2345f..d97ef4c6 100644 --- a/examples/parse_text.c +++ b/examples/parse_text.c @@ -1,6 +1,9 @@ /* parse_text.c - */ + SPDX-FileCopyrightText: <eric@civicknowledge.com> + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 +*/ + #include <libical/ical.h> #include <stdlib.h> @@ -43,7 +46,6 @@ void parse_text(char* argv[]) completes a component, c will be non-zero */ c = icalparser_add_line(parser,line); - if (c != 0){ char *temp = icalcomponent_as_ical_string_r(c); printf("%s", temp); @@ -56,6 +58,5 @@ void parse_text(char* argv[]) } while ( line != 0); - icalparser_free(parser); } |