diff options
author | 2018-08-20 15:21:34 -0400 | |
---|---|---|
committer | 2018-08-20 15:21:34 -0400 | |
commit | 99631c505097cd5b7c13b5f89711e089435cb0da (patch) | |
tree | d65d814c54985e8d09f994b0b739e08a724952b2 /swaynag/config.c | |
parent | Merge pull request #2498 from RyanDwyer/fix-jumping-views (diff) | |
parent | Fix bad-free in swaynag (diff) | |
download | sway-99631c505097cd5b7c13b5f89711e089435cb0da.tar.gz sway-99631c505097cd5b7c13b5f89711e089435cb0da.tar.zst sway-99631c505097cd5b7c13b5f89711e089435cb0da.zip |
Merge pull request #2501 from RedSoxFan/fix-bad-free-swaynag
Fix bad-free in swaynag
Diffstat (limited to 'swaynag/config.c')
-rw-r--r-- | swaynag/config.c | 4 |
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, | |||
180 | break; | 180 | break; |
181 | case 'L': // Detailed Button Text | 181 | case 'L': // Detailed Button Text |
182 | if (swaynag) { | 182 | if (swaynag) { |
183 | free(swaynag->details.button_details.text); | 183 | free(swaynag->details.button_details->text); |
184 | swaynag->details.button_details.text = strdup(optarg); | 184 | swaynag->details.button_details->text = strdup(optarg); |
185 | } | 185 | } |
186 | break; | 186 | break; |
187 | case 'm': // Message | 187 | case 'm': // Message |