mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-14 03:00:05 -04:00
Variables need to be declared at top of code for better portability
(Gerhard Lausser) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1399 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
52ea6f2a8d
commit
f7bb6d16e6
1 changed files with 1 additions and 1 deletions
|
|
@ -141,6 +141,7 @@ main (int argc, char **argv)
|
|||
char *p2 = NULL;
|
||||
char *show = NULL;
|
||||
char type[8];
|
||||
char *str[MAX_INPUT_BUFFER];
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
|
|
@ -338,7 +339,6 @@ main (int argc, char **argv)
|
|||
|
||||
i++;
|
||||
|
||||
char *str[MAX_INPUT_BUFFER];
|
||||
asprintf(str, "=%s%s;;;; ", show, type ? type : "");
|
||||
strcat(perfstr, *str);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue