mirror of
https://github.com/0intro/wmii
synced 2024-12-26 05:16:59 +03:00
several other changes concerning mallocz
This commit is contained in:
parent
629b23ae5d
commit
5811ab9b25
@ -433,9 +433,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* default item settings */
|
||||
item = cext_emallocz(sizeof(Item));
|
||||
item->id = 0;
|
||||
item->text[0] = '\0';
|
||||
item->value = 0;
|
||||
|
||||
align = "bottom";
|
||||
font = "fixed";
|
||||
|
@ -97,7 +97,6 @@ static char *_ls(File * f)
|
||||
}
|
||||
qsort(tmp, num, sizeof(char *), comp_file_name);
|
||||
result = cext_emallocz(size);
|
||||
result[0] = '\0';
|
||||
for (i = 0; i < num; i++) {
|
||||
strncat(result, tmp[i]->name, size);
|
||||
if (is_directory(tmp[i]))
|
||||
|
Loading…
Reference in New Issue
Block a user