netpbm/netpbm-10.34-pamscale.patch
Jindrich Novy 8a6be71e6f - pamscale won't waste all system resources by usage of uninitialized
variables for output image resolution (#199871)
- use %%{?dist}
2006-08-12 19:23:14 +00:00

12 lines
353 B
Diff

--- netpbm-10.34/editor/pamscale.c.pamscale 2006-03-16 01:33:49.000000000 +0100
+++ netpbm-10.34/editor/pamscale.c 2006-08-12 20:12:14.000000000 +0200
@@ -2081,6 +2081,8 @@
struct pam inpam, outpam;
float xscale, yscale;
+ memset(&cmdline, 0, sizeof(cmdline));
+
pnm_init(&argc, argv);
parseCommandLine(argc, argv, &cmdline);