about summary refs log tree commit diff
path: root/converter/other/pamtopfm.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/pamtopfm.c')
-rw-r--r--converter/other/pamtopfm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pamtopfm.c b/converter/other/pamtopfm.c
index f8fdc96b..44a8ab08 100644
--- a/converter/other/pamtopfm.c
+++ b/converter/other/pamtopfm.c
@@ -273,10 +273,10 @@ main(int argc, char **argv ) {
 
     pnm_init(&argc, argv);
 
-    parseCommandLine(argc, argv, &cmdline);
-
     machineEndianness = thisMachineEndianness();
 
+    parseCommandLine(argc, argv, &cmdline);
+
     ifP = pm_openr(cmdline.inputFilespec);
 
     tuplenArray = pnm_readpamn(ifP, &pam, sizeof(pam));