summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2018-06-28 12:02:53 +1000
committerAlistair Popple <alistair@popple.id.au>2018-07-12 13:07:04 +1000
commit4a2d564c7e2b085e35e0dac42a2b95523dcac07d (patch)
tree34deaae3c371f9e33ee142dc04c8c0f025ca1133
parent26bafaa5ac21c914eb30966714796f99bb104f29 (diff)
downloadpdbg-4a2d564c7e2b085e35e0dac42a2b95523dcac07d.tar.gz
pdbg-4a2d564c7e2b085e35e0dac42a2b95523dcac07d.zip
pdbg: Fix htm return codes
The following commit change the way htm is run causing all htm commands to fail. commit 92006e53c927472d62ee1637e6ad6cad35b53d5e Author: Alistair Popple <alistair@popple.id.au> Date: Wed Jun 20 15:34:09 2018 +1000 pdbg: Use new command parsing This fixes it by correctly setting the return code. Signed-off-by: Michael Neuling <mikey@neuling.org>
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f89db2f..06612fd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -742,7 +742,7 @@ int main(int argc, char *argv[])
/* Process subcommands. Currently only 'htm'.
* TODO: Move htm command parsing to optcmd once htm clean-up is complete */
if (!strcmp(argv[optind], "htm")) {
- run_htm(optind, argc, argv);
+ rc = run_htm(optind, argc, argv);
goto found_action;
}
OpenPOWER on IntegriCloud