diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
| commit | 1113bbcd92d85b85579aa7feef511241e58fb0f5 (patch) | |
| tree | d69b7bcfe2f7e80fda9a1f4ddd38209d6cb7aaf0 /gl/gettext.h | |
| parent | 99283972fe3a74d3a1dea12c4099f76286130a67 (diff) | |
| parent | a71ce153082565e5728424749475593dc0623492 (diff) | |
| download | monitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz | |
merged with mastercheck_snmp_fixes
Diffstat (limited to 'gl/gettext.h')
| -rw-r--r-- | gl/gettext.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gl/gettext.h b/gl/gettext.h index 0650abc9..0291cf09 100644 --- a/gl/gettext.h +++ b/gl/gettext.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Convenience header for conditional use of GNU <libintl.h>. | 1 | /* Convenience header for conditional use of GNU <libintl.h>. |
| 2 | Copyright (C) 1995-2025 Free Software Foundation, Inc. | 2 | Copyright (C) 1995-2026 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -298,12 +298,11 @@ dcpgettext_expr (const char *domain, | |||
| 298 | if (msg_ctxt_id != NULL) | 298 | if (msg_ctxt_id != NULL) |
| 299 | #endif | 299 | #endif |
| 300 | { | 300 | { |
| 301 | int found_translation; | ||
| 302 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); | 301 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); |
| 303 | msg_ctxt_id[msgctxt_len - 1] = '\004'; | 302 | msg_ctxt_id[msgctxt_len - 1] = '\004'; |
| 304 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); | 303 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); |
| 305 | translation = dcgettext (domain, msg_ctxt_id, category); | 304 | translation = dcgettext (domain, msg_ctxt_id, category); |
| 306 | found_translation = (translation != msg_ctxt_id); | 305 | int found_translation = (translation != msg_ctxt_id); |
| 307 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS | 306 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
| 308 | if (msg_ctxt_id != buf) | 307 | if (msg_ctxt_id != buf) |
| 309 | free (msg_ctxt_id); | 308 | free (msg_ctxt_id); |
| @@ -346,12 +345,11 @@ dcnpgettext_expr (const char *domain, | |||
| 346 | if (msg_ctxt_id != NULL) | 345 | if (msg_ctxt_id != NULL) |
| 347 | #endif | 346 | #endif |
| 348 | { | 347 | { |
| 349 | int found_translation; | ||
| 350 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); | 348 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); |
| 351 | msg_ctxt_id[msgctxt_len - 1] = '\004'; | 349 | msg_ctxt_id[msgctxt_len - 1] = '\004'; |
| 352 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); | 350 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); |
| 353 | translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); | 351 | translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); |
| 354 | found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); | 352 | int found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); |
| 355 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS | 353 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
| 356 | if (msg_ctxt_id != buf) | 354 | if (msg_ctxt_id != buf) |
| 357 | free (msg_ctxt_id); | 355 | free (msg_ctxt_id); |
