++ptr;
}
- // TODO verify this is necessary, using different variables.
- ptr = out->working_files;
- out->working_files = realloc(ptr, sizeof(char *) * (working_size + 1));
+ out->working_files = realloc(out->working_files, sizeof(char *) * (working_size + 1));
// Set new actual last element to NULL.
out->working_files[working_size] = NULL;
// Is a directory.
simple_archiver_list_add_front(dir_list, combined_path, NULL);
} else {
- // Unhandled type. TODO handle this.
+ fprintf(stderr,
+ "NOTICE: Not a file, symlink, or directory: \"%s\"."
+ " Skipping...\n",
+ combined_path);
free(combined_path);
}
}
}
}
} else {
- // Unhandled type. TODO handle this.
+ fprintf(stderr,
+ "NOTICE: Not a file, symlink, or directory: \"%s\"."
+ " Skipping...\n",
+ file_path);
}
}
#endif