Index: ratpoison-1.4.0.dfsg/src/events.c =================================================================== --- ratpoison-1.4.0.dfsg.orig/src/events.c 2006-05-21 17:20:07.020354510 +0200 +++ ratpoison-1.4.0.dfsg/src/events.c 2006-05-21 17:24:32.629834052 +0200 @@ -565,7 +565,7 @@ /* notify the client of any text that was returned by the command. */ - if (cmd_ret->output) + if (cmd_ret && cmd_ret->output) result = xsprintf ("%c%s", cmd_ret->success ? '1':'0', cmd_ret->output); else result = NULL; Index: ratpoison-1.4.0.dfsg/src/actions.c =================================================================== --- ratpoison-1.4.0.dfsg.orig/src/actions.c 2006-05-21 17:20:07.063346820 +0200 +++ ratpoison-1.4.0.dfsg/src/actions.c 2006-05-21 17:35:26.030937152 +0200 @@ -783,7 +783,7 @@ void cmdret_free (cmdret *ret) { - if (ret->output) + if (ret) free (ret->output); free (ret); }