Code

control: Updated standards-version to 3.9.5 -- no changes.
[pkg-rrdtool.git] / debian / patches / bts428778-floating-point-exception
index cefb3ddbc77e115804c1cd9a040b9b0f33575d82..9878ac32b27232417a468fab441127fa1ad5fa38 100644 (file)
@@ -1,7 +1,7 @@
 diff a/src/rrd_create.c b/src/rrd_create.c
 --- a/src/rrd_create.c
 +++ b/src/rrd_create.c
-@@ -740,6 +740,15 @@ int rrd_create_fn(
+@@ -771,6 +771,15 @@ int rrd_create_fn(
          default:
              /* can not be zero because we don't know anything ... */
              rrd->cdp_prep->scratch[CDP_val].u_val = DNAN;
@@ -11,7 +11,7 @@ diff a/src/rrd_create.c b/src/rrd_create.c
 +            {
 +                rrd_set_error("Invalid step: must be greater than 0.");
 +                rrd_free2(rrd);
-+                close(rrd_file);
++                rrd_close(rrd_file_dn);
 +                return(-1);
 +            }
              /* startup missing pdp count */