mode: Properly use mode init return value

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-03-28 22:27:16 +02:00
parent 3fab20b45e
commit e45f0194d1
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7

View file

@ -17,8 +17,7 @@ int mode_init ( Mode *mode )
{ {
g_return_val_if_fail ( mode != NULL, FALSE ); g_return_val_if_fail ( mode != NULL, FALSE );
g_return_val_if_fail ( mode->_init != NULL, FALSE ); g_return_val_if_fail ( mode->_init != NULL, FALSE );
mode->_init ( mode ); return mode->_init ( mode );
return TRUE;
} }
void mode_destroy ( Mode *mode ) void mode_destroy ( Mode *mode )