Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #32960
Closed (moved) (moved)
Open
Issue created Jan 15, 2020 by Nick Mathewson@nickm🌻

CID 1457825: stub version of nt_service_parse_options() makes coverity think we have dead code

 *** CID 1457825:  Possible Control flow issues  (DEADCODE)
/src/app/main/main.c: 1244 in tor_run_main()
1238         memcpy(argv + tor_cfg->argc, tor_cfg->argv_owned,
1239                tor_cfg->argc_owned*sizeof(char*));
1240     
1241       int done = 0;
1242       result = nt_service_parse_options(argc, argv, &done);
1243       if (done)
>>>     CID 1457825:  Possible Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "goto done;".
1244         goto done;
1245     
1246       pubsub_install();
1247     
1248       {
1249         int init_rv = tor_init(argc, argv);
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking