diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 22:18:51 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 23:06:29 +0100 |
commit | b8d5ca85d9a6e6f42b8dbd6d47cab7bbcffeea90 (patch) | |
tree | a64f9b23e4f98279712d3d29bd37659996ce4c39 /src/main.c | |
parent | 268732324fd37d9b001694a9206a66cce6681c20 (diff) | |
download | ratpoison-b8d5ca85d9a6e6f42b8dbd6d47cab7bbcffeea90.zip |
if (ptr) free(ptr) is not a good idiom.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -297,8 +297,7 @@ handler (Display *d, XErrorEvent *e) /* If there is already an error to report, replace it with this new one. */ - if (rp_error_msg) - free (rp_error_msg); + free (rp_error_msg); rp_error_msg = xstrdup (error_msg); return 0; |