Skip to content

Commit

Permalink
Fix args check inside gtk_mixer_tray_icon_scroll()
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im committed Jan 26, 2024
1 parent 1cdc47e commit 0df2528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gtk-mixer-tray_icon.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2021-2023 Rozhuk Ivan <[email protected]>
* Copyright (c) 2021-2024 Rozhuk Ivan <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -53,6 +53,7 @@ gtk_mixer_tray_icon_scroll(GtkStatusIcon *status_icon,

if (NULL == tray_icon ||
NULL == tray_icon->dev_line)
return (FALSE);
if (0 != tray_icon->dev_line->is_read_only)
return (FALSE);

Expand Down

0 comments on commit 0df2528

Please sign in to comment.