diff options
| author | 2026-05-22 20:41:23 +0200 | |
|---|---|---|
| committer | 2026-05-22 20:41:23 +0200 | |
| commit | bd851a87ec93db2516455e982f121389a86fc0f7 (patch) | |
| tree | 2634e22b57c2e04611573c4a3f03a6f96506d87b /src/xplist.c | |
| parent | 024864926b1de278d6877a0864c1ca36f35c20e6 (diff) | |
| download | libplist-bd851a87ec93db2516455e982f121389a86fc0f7.tar.gz libplist-bd851a87ec93db2516455e982f121389a86fc0f7.tar.bz2 | |
Print debug error message when encoutering invalid PLIST_DATE values
Diffstat (limited to 'src/xplist.c')
| -rw-r--r-- | src/xplist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c index 3157ab0..b2c134e 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -194,6 +194,7 @@ static plist_err_t node_to_xml(node_t node, bytearray_t **outbuf, uint32_t depth | |||
| 194 | { | 194 | { |
| 195 | Time64_T timev; | 195 | Time64_T timev; |
| 196 | if (plist_real_to_time64(node_data->realval, &timev) < 0) { | 196 | if (plist_real_to_time64(node_data->realval, &timev) < 0) { |
| 197 | PLIST_XML_WRITE_ERR("Encountered invalid date value %f\n", node_data->realval); | ||
| 197 | return PLIST_ERR_INVALID_ARG; | 198 | return PLIST_ERR_INVALID_ARG; |
| 198 | } | 199 | } |
| 199 | struct TM _btime; | 200 | struct TM _btime; |
