summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/debug.c b/src/debug.c
index 445ff67..2271460 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -53,20 +53,6 @@ main (int argc, char *argv[])
herr_t status = SUCCEED;
haddr_t extra;
- H5F_addr_reset (&addr);
- H5F_addr_reset (&extra);
-
- /*
- * Parse command arguments.
- */
- if (argc>2) {
- printf ("New address: %s\n", argv[2]);
- addr.offset = HDstrtol (argv[2], NULL, 0);
- }
- if (argc>3) {
- extra.offset = HDstrtol (argv[3], NULL, 0);
- }
-
/*
* Open the file and get the file descriptor.
*/
@@ -80,6 +66,19 @@ main (int argc, char *argv[])
}
/*
+ * Parse command arguments.
+ */
+ H5F_addr_reset (&addr);
+ H5F_addr_reset (&extra);
+ if (argc>2) {
+ printf ("New address: %s\n", argv[2]);
+ addr.offset = HDstrtol (argv[2], NULL, 0);
+ }
+ if (argc>3) {
+ extra.offset = HDstrtol (argv[3], NULL, 0);
+ }
+
+ /*
* Read the signature at the specified file position.
*/
printf ("Reading signature at address ");