X-Git-Url: https://git.tokkee.org/?p=nagiosplug.git;a=blobdiff_plain;f=lib%2Futils_disk.c;fp=lib%2Futils_disk.c;h=5be2b2c07bd498e991b8f6519d7348bb31d8f7a9;hp=3d20f4d4125c075e9dbc5762d79758564a4985d8;hb=77f2c84d2f599d86a60586494169dcab17853e3a;hpb=896962a1ad1b7d7c75d42c565b06cc799feb0a7c diff --git a/lib/utils_disk.c b/lib/utils_disk.c index 3d20f4d..5be2b2c 100644 --- a/lib/utils_disk.c +++ b/lib/utils_disk.c @@ -58,6 +58,19 @@ np_add_parameter(struct parameter_list **list, const char *name) new_path->usedinodes_percent = NULL; new_path->freeinodes_percent = NULL; new_path->group = NULL; + new_path->dfree_pct = -1; + new_path->dused_pct = -1; + new_path->total = 0; + new_path->available = 0; + new_path->available_to_root = 0; + new_path->used = 0; + new_path->dused_units = 0; + new_path->dfree_units = 0; + new_path->dtotal_units = 0; + new_path->inodes_total = 0; + new_path->inodes_free = 0; + new_path->dused_inodes_percent = 0; + new_path->dfree_inodes_percent = 0; if (current == NULL) { *list = new_path;