summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
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();