summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools/hwstub_shell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/tools/hwstub_shell.cpp')
-rw-r--r--utils/hwstub/tools/hwstub_shell.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp
index cdacd81821..082e15aa59 100644
--- a/utils/hwstub/tools/hwstub_shell.cpp
+++ b/utils/hwstub/tools/hwstub_shell.cpp
@@ -725,11 +725,14 @@ int main(int argc, char **argv)
725 // load register descriptions 725 // load register descriptions
726 std::vector< soc_t > socs; 726 std::vector< soc_t > socs;
727 for(int i = optind; i < argc; i++) 727 for(int i = optind; i < argc; i++)
728 if(!soc_desc_parse_xml(argv[i], socs)) 728 {
729 socs.push_back(soc_t());
730 if(!soc_desc_parse_xml(argv[i], socs[socs.size() - 1]))
729 { 731 {
730 printf("Cannot load description '%s'\n", argv[i]); 732 printf("Cannot load description '%s'\n", argv[i]);
731 return 2; 733 return 2;
732 } 734 }
735 }
733 736
734 // create usb context 737 // create usb context
735 libusb_context *ctx; 738 libusb_context *ctx;