commit 2e3962325c2df01f36423cbc979ea08c1cb6eeaf parent ded3b469c3f1ee6e8ebe43ad8788fb62c41e48af Author: priscilla <priscilla.huang@efrei.net> Date: Thu, 2 Feb 2023 05:26:19 -0500 allow patch template to edit when image is null Diffstat:
| D | src/backend/.#taler-merchant-httpd.c | | | 2 | -- |
| M | src/backend/taler-merchant-httpd_helper.c | | | 4 | +++- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/.#taler-merchant-httpd.c b/src/backend/.#taler-merchant-httpd.c @@ -1 +0,0 @@ -priscilla@dhcp-147-87-107-42.2280:1675328542 -\ No newline at end of file diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c @@ -296,7 +296,9 @@ bool TMH_image_data_url_valid (const char *image_data_url) { if (0 == strcmp (image_data_url, - NULL)) + "")) + return true; + if (NULL == image_data_url) return true; if (0 != strncasecmp ("data:image/", image_data_url,