Commit b5acac3b authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

Qt: fix NULL dereference on undescribed string var

parent 2a19df4c
...@@ -214,8 +214,8 @@ StringConfigControl::StringConfigControl( vlc_object_t *_p_this, ...@@ -214,8 +214,8 @@ StringConfigControl::StringConfigControl( vlc_object_t *_p_this,
bool pwd ) : bool pwd ) :
VStringConfigControl( _p_this, _p_item ) VStringConfigControl( _p_this, _p_item )
{ {
label = new QLabel( qtr(p_item->psz_text), _parent ); label = new QLabel( p_item->psz_text ? qtr(p_item->psz_text) : "", _parent );
text = new QLineEdit( qfu(p_item->value.psz), _parent ); text = new QLineEdit( p_item->value.psz ? qfu(p_item->value.psz) : "", _parent );
if( pwd ) text->setEchoMode( QLineEdit::Password ); if( pwd ) text->setEchoMode( QLineEdit::Password );
finish(); finish();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment