lynxis lazus submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
host: simtrace2-sniff: init exit code
Early failure i.e. of libusb return random values as exit code.
Change-Id: If920824d35c1f37efe16440b5fb190ca0fb19148
---
M host/src/simtrace2-sniff.c
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/host/src/simtrace2-sniff.c b/host/src/simtrace2-sniff.c
index 8504e8b..1f2c69d 100644
--- a/host/src/simtrace2-sniff.c
+++ b/host/src/simtrace2-sniff.c
@@ -328,7 +328,7 @@
int main(int argc, char **argv)
{
- int i, rc, ret;
+ int i, rc, ret = 1;
print_welcome();
/* Parse arguments */
To view, visit change 43134. To unsubscribe, or for help writing mail filters, visit settings.