summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-30 15:28:17 +0100
committersin <sin@2f30.org>2014-09-30 15:28:17 +0100
commit27da57aebfba90702e79642cb71c088be5a6f926 (patch)
tree344eb9a8e3f05b85e461d0f7411d0c96d6f03266 /ratox.c
parentfa0f7f78571ce6374113b871f71935ec661148a9 (diff)
Allow empty names
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ratox.c b/ratox.c
index e773354..dce458e 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1012,8 +1012,6 @@ setname(void *data)
return;
if (name[n - 1] == '\n')
n--;
- if (n == 0)
- return;
name[n] = '\0';
tox_set_name(tox, (uint8_t *)name, n);
datasave();