aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorael-code <tommy.ael@gmail.com>2018-06-22 15:41:44 +0200
committerael-code <tommy.ael@gmail.com>2018-06-22 15:41:44 +0200
commitad085c13325d17a242a813879b8574ba3dd43cc7 (patch)
tree60dd5b87f1e9bf29b0816210ee00e18e29470405 /sway/main.c
parent202ee511503bc7c6a18dec440ac3cdb8d5e8f859 (diff)
bugfix: avoid access after free
if src is NULL due to a previous error we cannot use it in the command result string. Moreover if `src` points to `p.we_wordv[0]` we cannot use it after `wordfree(&p)` in the command result string. Bonus feature: If there was an error accessing the file, the string rapresentation of the error is now included in the command result string.
Diffstat (limited to 'sway/main.c')
0 files changed, 0 insertions, 0 deletions