version 1.13, 2014/03/23 11:25:26 |
version 1.14, 2014/04/20 16:46:05 |
Line 169 manpath_add(struct manpaths *dirs, const char *dir) |
|
Line 169 manpath_add(struct manpaths *dirs, const char *dir) |
|
if (0 == strcmp(dirs->paths[i], dir)) |
if (0 == strcmp(dirs->paths[i], dir)) |
return; |
return; |
|
|
dirs->paths = mandoc_realloc |
dirs->paths = mandoc_realloc(dirs->paths, |
(dirs->paths, |
(dirs->sz + 1) * sizeof(char *)); |
(dirs->sz + 1) * sizeof(char *)); |
|
|
|
dirs->paths[dirs->sz++] = mandoc_strdup(cp); |
dirs->paths[dirs->sz++] = mandoc_strdup(cp); |
} |
} |