Mercurial > libedl
diff src/edl.c @ 13:41b74137e201
include: make header guards sane
double underscores are reserved to the implementation by
the C standard
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 20:48:51 -0400 |
parents | 0cc2555db371 |
children | 2d7c810a1ac2 |
line wrap: on
line diff
--- a/src/edl.c Wed Mar 27 13:38:30 2024 -0400 +++ b/src/edl.c Wed Apr 03 20:48:51 2024 -0400 @@ -98,7 +98,7 @@ if (!ln) return -1; - newline = ln - &data[offset]; + newline = ln ? (ln - &data[offset]) : length; } EDL_internal_header_reallocate(header, 32); @@ -404,10 +404,9 @@ EDL_internal_string_append(&ret, order_str, strlen(order_str)); { - /* how? */ EDL_header header = {0}; if (EDL_internal_parse_header(&header, order_str, 0, strlen(order_str)) < 0) - return NULL; + return NULL; /* how? */ size_t i; for (i = 0; i < edl->size; i++)