[project @ 2002-11-11 18:42:09 by panne]
authorpanne <unknown>
Mon, 11 Nov 2002 18:42:09 +0000 (18:42 +0000)
committerpanne <unknown>
Mon, 11 Nov 2002 18:42:09 +0000 (18:42 +0000)
Warning police: Removed "possibly uninitialized variable" warning.

ghc/utils/hp2ps/PsFile.c

index 5286ad9..40b08da 100644 (file)
@@ -59,22 +59,13 @@ static void Scaling   PROTO((floatish));            /* forward */
 static void
 Prologue()
 {
-    floatish epsfscale;
-
-    if (eflag) epsfscale = epsfwidth / (floatish) borderwidth;
-
     if (eflag) {
+       floatish epsfscale = epsfwidth / (floatish) borderwidth;
        EPSFSpecialComments(epsfscale);
-    } else {
-       StandardSpecialComments();
-    }
-
-    if (eflag) {
        Scaling(epsfscale);
-    } else if (gflag) {
-       Portrait();
     } else {
-       Landscape();
+       StandardSpecialComments();
+       if (gflag) Portrait(); else Landscape();
     }
 }