resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
511 stars 51 forks source link

scrotExecApp cleanup #291

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

scrotExecApp: fix memory leak and style cleanup

scrotExecApp: check for WIFEXITED first

according to waitpid(3) manpage:

| This macro (WEXITSTATUS) should be employed only if WIFEXITED returned true.