Skip to content
Snippets Groups Projects
Commit 5fe9e5d5 authored by Raymond Toy's avatar Raymond Toy
Browse files

Remove debugging prints

parent 288e8373
No related branches found
No related tags found
1 merge request!88Fix #130: Implement file_author in C
Pipeline #6873 passed
...@@ -756,7 +756,6 @@ os_file_author(const char *path) ...@@ -756,7 +756,6 @@ os_file_author(const char *path)
while (1) { while (1) {
buf2 = realloc(buf, bufsize); buf2 = realloc(buf, bufsize);
fprintf(stderr, "buf2 = %p, size %zu\n", buf2, bufsize);
if (buf2 == NULL) { if (buf2 == NULL) {
result = NULL; result = NULL;
...@@ -783,17 +782,12 @@ os_file_author(const char *path) ...@@ -783,17 +782,12 @@ os_file_author(const char *path)
} }
if (result) { if (result) {
fprintf(stderr, "Allocate %d bytes for author\n",
strlen(result->pw_name + 1));
author = malloc(strlen(result->pw_name) + 1); author = malloc(strlen(result->pw_name) + 1);
if (author) { if (author) {
fprintf(stderr, "author = %p\n", author);
strcpy(author, result->pw_name); strcpy(author, result->pw_name);
} }
} }
fprintf(stderr, "Free buf %p\n", buf);
if (buf) { if (buf) {
free(buf); free(buf);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment