Skip to content
Snippets Groups Projects
Commit 82ec5b9f authored by Yorhel's avatar Yorhel
Browse files

Misc. minor fixes

parent 93a97381
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ struct dir *browse_sort(struct dir *list) { ...@@ -131,7 +131,7 @@ struct dir *browse_sort(struct dir *list) {
void browse_draw_info(struct dir *dr) { void browse_draw_info(struct dir *dr) {
struct dir *t; struct dir *t;
int i,j; int i;
nccreate(11, 60, "Item info"); nccreate(11, 60, "Item info");
......
...@@ -452,8 +452,10 @@ int calc_process() { ...@@ -452,8 +452,10 @@ int calc_process() {
free(name); free(name);
free(path); free(path);
if(links != NULL) if(links != NULL) {
free(links); free(links);
links = NULL;
}
/* success */ /* success */
if(!n && !failed) { if(!n && !failed) {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#include <dirent.h>
#ifndef LINK_MAX #ifndef LINK_MAX
# ifdef _POSIX_LINK_MAX # ifdef _POSIX_LINK_MAX
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment