summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-11 05:57:35 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-11 05:57:35 +0000
commit56c9db8516069b34a3174ee6511d5e6962007d27 (patch)
tree73ebcece0b7acccad3a4f1ff2c30c43e7c7b9bef /plugins/check_http.c
parent14be3a7df38404c2b35007c7fbd7111eb0495980 (diff)
downloadmonitoring-plugins-56c9db8516069b34a3174ee6511d5e6962007d27.tar.gz
Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 728e7c13..bec02e1a 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -140,6 +140,10 @@ main (int argc, char **argv)
140{ 140{
141 int result = STATE_UNKNOWN; 141 int result = STATE_UNKNOWN;
142 142
143 setlocale (LC_ALL, "");
144 bindtextdomain (PACKAGE, LOCALEDIR);
145 textdomain (PACKAGE);
146
143 /* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */ 147 /* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */
144 server_url = strdup(HTTP_URL); 148 server_url = strdup(HTTP_URL);
145 server_url_length = strlen(server_url); 149 server_url_length = strlen(server_url);