]> git.notmuchmail.org Git - apitrace/commit
Fix crash when using apitrace trim's -o option.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Apr 2012 17:51:26 +0000 (10:51 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 5 Apr 2012 19:01:41 +0000 (20:01 +0100)
commit5245ded8cba4462a4a7552cb10e1722e80e49d42
tree3836ea9bc61b4f9bf19c0c03d9da7d8b077b9170
parente8871acc1b1151e1a17e70c4bdfe839c04ccbbcc
Fix crash when using apitrace trim's -o option.

The -o option takes an argument (the filename), so the getopt string
needs to be 'o:', not 'o'.  Otherwise, no argument is parsed, optarg
remains NULL, and we crash on "output = optarg".
cli/cli_trim.cpp