Skip to content

Commit

Permalink
bugfix: private pointer init in fnode_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rd235 committed Dec 25, 2024
1 parent fd2addc commit f0d1083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umvu/src/vu_fnode_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static int copyfile_in(struct vuht_entry_t *ht, char *path, char *tmp_path) {
ssize_t n;
size_t filesize = 0;
char *buf[BUFSIZ];
void *private;
void *private = NULL;
struct vu_stat fdoutstat;
//printk("COPY %s to %s\n",path,tmp_path);
fdout = r_open(tmp_path, O_WRONLY | O_CREAT | O_CLOEXEC, 0700);
Expand Down Expand Up @@ -84,7 +84,7 @@ static int copyfile_in(struct vuht_entry_t *ht, char *path, char *tmp_path) {
static int copyfile_out(struct vuht_entry_t *ht, char *path, char *tmp_path) {
int fdin, fdout, n;
char *buf[BUFSIZ];
void *private;
void *private = NULL;
fdin = r_open(path, O_RDONLY);
if (fdin < 0)
return -1;
Expand Down

0 comments on commit f0d1083

Please sign in to comment.