summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-02-20 02:20:29 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-02-20 02:20:29 +0100
commit13d5a48507a4aa161ea1353e0e6913719c6d57cc (patch)
tree5ef7619fbdce7731e13a3edecbe533fb7b9a077e
parentb4dd29b6c9881f80e02c5f4cf11a1bc8a8ee6d92 (diff)
downloadratpoison-13d5a48507a4aa161ea1353e0e6913719c6d57cc.zip
Kill noisy local variable.
-rw-r--r--src/input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c
index 68eb453..894b260 100644
--- a/src/input.c
+++ b/src/input.c
@@ -303,7 +303,6 @@ grab_key (KeySym keysym, unsigned int modifiers, Window grab_window)
char *
keysym_to_string (KeySym keysym, unsigned int modifier)
{
- static char *null_string = "NULL";
struct sbuf *name;
char *tmp;
@@ -320,7 +319,7 @@ keysym_to_string (KeySym keysym, unsigned int modifier)
can return NULL. In this case use the "NULL" string. */
tmp = XKeysymToString (keysym);
if (tmp == NULL)
- tmp = null_string;
+ tmp = "NULL";
sbuf_concat (name, tmp);