mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
ttsnoop: check the return value from tt_message_op to avoid a segmentation
fault.
This commit is contained in:
parent
75a4e93d38
commit
7cd4221824
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ _DtTtChoices(
|
||||||
std::ostringstream itemStream;
|
std::ostringstream itemStream;
|
||||||
itemStream << (void *)dtTtMessages[ i ];
|
itemStream << (void *)dtTtMessages[ i ];
|
||||||
char *op = tt_message_op( dtTtMessages[ i ] );
|
char *op = tt_message_op( dtTtMessages[ i ] );
|
||||||
if (! tt_is_err( tt_ptr_error( op ))) {
|
if (op && ! tt_is_err( tt_ptr_error( op ))) {
|
||||||
itemStream << " " << op;
|
itemStream << " " << op;
|
||||||
tt_free( op );
|
tt_free( op );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue