X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=main.cpp;h=690a559c29e9a8952b74e2a840475b227650d5b3;hp=2119b81e50d778daf1ca3e2b6ba4fc09bd8b3f97;hb=c063290ac7189bdd15221450f598504f43286b43;hpb=db1aabc15dc8680673b943c2dd0f38a83c32a1d9 diff --git a/main.cpp b/main.cpp index 2119b81..690a559 100644 --- a/main.cpp +++ b/main.cpp @@ -136,10 +136,11 @@ int main(int argc, char *argv[]) if (argc - optind > 1) { fprintf(stderr, "Only one file can be opened.\n"); return 1; - } else if (argc - optind == 1) { - open_file = argv[argc - 1]; } + if (argc - optind == 1) + open_file = argv[argc - 1]; + // Initialise libsigrok context = sigrok::Context::create(); #ifdef ANDROID