aboutsummaryrefslogtreecommitdiff
path: root/swaynag/config.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-08-20 15:06:12 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-08-20 15:06:12 -0400
commitf0d21c46dd8eedc186509cf0ed20833b746182e7 (patch)
treed65d814c54985e8d09f994b0b739e08a724952b2 /swaynag/config.c
parent881f729af9e675710dea43eb268cf644e6ec66be (diff)
Fix bad-free in swaynag
Diffstat (limited to 'swaynag/config.c')
-rw-r--r--swaynag/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaynag/config.c b/swaynag/config.c
index d6c5739d..4d0824c9 100644
--- a/swaynag/config.c
+++ b/swaynag/config.c
@@ -180,8 +180,8 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
break;
case 'L': // Detailed Button Text
if (swaynag) {
- free(swaynag->details.button_details.text);
- swaynag->details.button_details.text = strdup(optarg);
+ free(swaynag->details.button_details->text);
+ swaynag->details.button_details->text = strdup(optarg);
}
break;
case 'm': // Message