Package: ppdfilt
Version: 2:0.10-4
Severity: normal
Tags: patch

If none of the Options landscape or orientation-requested are given,
set_orientation is never called and thus the orientation number-up
uses is undefined.

The i386 binaries in the archive get it right here (have not
disassembled to see if it always get a 0, or if I just had luck and
was not hit yet).
But when recompiled with the default gcc in etch, it always thinks
it should be landscape here.

Attached patch should fixes this problem.

-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)

Versions of packages ppdfilt depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libglib1.2                  1.2.10-17    The GLib library of C routines
ii  libppd0                     2:0.10-4     postscript PPD file library

ppdfilt recommends no packages.

-- no debconf information

Hochachtungsvoll,
        Bernhard R. Link
diff -r -u -p libppd-0.10.original/src/ppdfilt.c libppd-0.10/src/ppdfilt.c
--- libppd-0.10.original/src/ppdfilt.c	2001-11-05 22:22:42.000000000 +0100
+++ libppd-0.10/src/ppdfilt.c	2007-05-08 11:56:26.000000000 +0200
@@ -296,7 +296,7 @@ int main(int argc, char *argv[])
   const char *ppdfilename = getenv("PPD");
   GSList *list;			// List enumeration variable.
 
-  unsigned int flags;
+  unsigned int flags = 0;
 
   clear_pageorder(&flags);
   clear_flip(&flags);

Reply via email to