aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-categories.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-05-25 23:11:21 +0200
committerChristian Grothoff <christian@grothoff.org>2024-05-25 23:11:21 +0200
commit3b78742b50d0b5122ab81a0fcd1ff3619e25f119 (patch)
treee62ecc1c853fc614a2e9327965eefc5e868920f3 /src/backend/taler-merchant-httpd_private-post-categories.c
parent8d13ea6b82c39f9c68b9abf2ec70d221eef4ab74 (diff)
activate new categories API
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-categories.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-categories.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-categories.c b/src/backend/taler-merchant-httpd_private-post-categories.c
index 9e708724..675de765 100644
--- a/src/backend/taler-merchant-httpd_private-post-categories.c
+++ b/src/backend/taler-merchant-httpd_private-post-categories.c
@@ -110,10 +110,8 @@ TMH_private_post_categories (const struct TMH_RequestHandler *rh,
{
bool eq;
- eq = ( (0 == strcmp (cd.category_name,
- category_name)) &&
- (1 == json_equal (xcategory_name_i18n,
- category_name_i18n)) );
+ eq = (1 == json_equal (xcategory_name_i18n,
+ category_name_i18n));
json_decref (xcategory_name_i18n);
TMH_db->rollback (TMH_db->cls);
GNUNET_JSON_parse_free (spec);