[Nagiosplug-devel] [ nagiosplug-Patches-900091 ] disk_check -x -X bag with not initialized variables

SourceForge.net noreply at sourceforge.net
Thu Feb 19 05:36:09 CET 2004


Patches item #900091, was opened at 2004-02-19 08:05
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=900091&group_id=29880

Category: Bugfix
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Michael Musikhin (mmusikhin)
>Assigned to: Ton Voon (tonvoon)
Summary: disk_check -x -X bag with not initialized variables

Initial Comment:
--- check_disk.c.orig   Thu Aug 28 09:22:01 2003
+++ check_disk.c        Thu Feb 19 11:57:33 2004
@@ -393,6 +403,10 @@
                        se = (struct name_list *)
malloc (sizeof (struct name_list));
                        se->name = optarg;
                        se->name_next = NULL;
+                       se->w_df = 0;
+                       se->c_df = 0;
+                       se->w_dfp = -1;
+                       se->c_dfp = -1;
                        *dptail = se;
                        dptail = &se->name_next;
                        break;
@@ -400,6 +414,10 @@
                        se = (struct name_list *)
malloc (sizeof (struct name_list));
                        se->name = optarg;
                        se->name_next = NULL;
+                       se->w_df = 0;
+                       se->c_df = 0;
+                       se->w_dfp = -1;
+                       se->c_dfp = -1;
                        *fstail = se;
                        fstail = &se->name_next;
                        break;


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-02-19 13:28

Message:
Logged In: YES 
user_id=664364

Michael,

Thanks for the patch. Applied to check_disk.c v1.40.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=900091&group_id=29880




More information about the Devel mailing list