Imported Upstream version 1.4.16+git20130911

This commit is contained in:
Jan Wagner 2013-11-27 00:00:34 +01:00
parent 96678a79c9
commit ea90af2ba1
20 changed files with 379 additions and 383 deletions

View file

@ -34,7 +34,7 @@ main (int argc, char **argv)
struct name_list *dummy_mountlist = NULL;
struct name_list *temp_name;
struct parameter_list *paths = NULL;
struct parameter_list *p, *prev, *last;
struct parameter_list *p, *prev = NULL, *last = NULL;
struct mount_entry *dummy_mount_list;
struct mount_entry *me;

View file

@ -27,6 +27,7 @@
#include "common.h"
#include <stdarg.h>
#include "utils_base.h"
#include <ctype.h>
#include <fcntl.h>
#include <sys/stat.h>
@ -34,6 +35,8 @@
nagios_plugin *this_nagios_plugin=NULL;
int _np_state_read_file(FILE *);
void np_init( char *plugin_name, int argc, char **argv ) {
if (this_nagios_plugin==NULL) {
this_nagios_plugin = calloc(1, sizeof(nagios_plugin));