Ticket #4524: code cleanup before 4.8.32 release.

(set_panel_formats): fix coding style.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-04-13 12:24:05 +03:00
parent 9428697134
commit 34109d5a25
1 changed files with 3 additions and 3 deletions

View File

@ -4704,15 +4704,15 @@ set_panel_formats (WPanel * p)
panel_update_cols (WIDGET (p), p->frame_size);
if (retcode)
if (retcode != 0)
message (D_ERROR, _("Warning"),
_("User supplied format looks invalid, reverting to default."));
if (retcode & 0x01)
if ((retcode & 0x01) != 0)
{
g_free (p->user_format);
p->user_format = g_strdup (DEFAULT_USER_FORMAT);
}
if (retcode & 0x02)
if ((retcode & 0x02) != 0)
{
g_free (p->user_status_format[p->list_format]);
p->user_status_format[p->list_format] = g_strdup (DEFAULT_USER_FORMAT);