commit 9674445d8ea9f60f4d1a154be6fdb12e7af8f0c6
parent 969e755e1b757e7d922fa43a0aae55d6219e397d
Author: Conrad Parker <conrad@metadecks.org>
Date: Wed, 15 Oct 2014 21:00:48 +1100
Merge pull request #6 from trespasserw/patch-1
avoid extra atom at the end of the targets list
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/xsel.c b/xsel.c
@@ -2210,10 +2210,6 @@ main(int argc, char *argv[])
supported_targets[s++] = incr_atom;
NUM_TARGETS++;
- /* Get the NULL atom */
- null_atom = XInternAtom (display, "NULL", False);
- NUM_TARGETS++;
-
/* Get the TEXT atom */
text_atom = XInternAtom (display, "TEXT", False);
supported_targets[s++] = text_atom;
@@ -2236,6 +2232,9 @@ main(int argc, char *argv[])
NUM_TARGETS, MAX_NUM_TARGETS);
}
+ /* Get the NULL atom */
+ null_atom = XInternAtom (display, "NULL", False);
+
/* Get the COMPOUND_TEXT atom.
* NB. We do not currently serve COMPOUND_TEXT; we can retrieve it but
* do not perform charset conversion.