Properly check the return value of color_filters_set_tmp().
It returns FALSE, not TRUE, on failure. Bug: 12101 Change-Id: I2fb4f407d2040e7b84f17af197de81555d64c647 Reviewed-on: https://code.wireshark.org/review/13857 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
25ce3a34bd
commit
ab977a86d0
|
@ -2390,7 +2390,7 @@ void MainWindow::colorizeWithFilter()
|
|||
if (ok) {
|
||||
// Assume "Color X"
|
||||
gchar *err_msg = NULL;
|
||||
if (color_filters_set_tmp(color_number, filter.toUtf8().constData(), FALSE, &err_msg)) {
|
||||
if (!color_filters_set_tmp(color_number, filter.toUtf8().constData(), FALSE, &err_msg)) {
|
||||
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_msg);
|
||||
g_free(err_msg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue