summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-04 20:04:21 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:16 +0200
commit278b89d092cae8fe9cdd6346c69512886d36abbd (patch)
treee11945a256d14e8668fc3efdf14936d60cc13900 /src/inlines.c
parentd260c800c90e024714a6d84e28ac2caea70866e7 (diff)
Silly me
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 5e0f3e5..6b17027 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -112,7 +112,7 @@ static unsigned char *bufdup(const unsigned char *buf)
{
unsigned char *new = NULL;
- if (!buf) {
+ if (buf) {
int len = strlen((char *)buf);
new = malloc(len + 1);
memcpy(new, buf, len + 1);