Hoernchen has uploaded this change for review.

View Change

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(-)

git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/34/43134/1
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.

Gerrit-MessageType: newchange
Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: If920824d35c1f37efe16440b5fb190ca0fb19148
Gerrit-Change-Number: 43134
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild@sysmocom.de>