Menu

#5 Fix tests.cc when run with no arguments

Unstable (example)
closed
nobody
None
5
2015-12-08
2015-08-16
No

tests.cc tries to use the first command line argument, without checking whether it has actually been passed. This might cause a crash later due to a NULL pointer, and indeed also valgrind complains about that.

Attached a git commit fixing this issue.

1 Attachments

Discussion

  • Davi de Castro Reis

    Thanks a lot!

     
  • Davi de Castro Reis

    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.