mirror of
https://github.com/schoebel/mars
synced 2025-03-30 23:36:37 +00:00
main: fix uninitialized pointer
This commit is contained in:
parent
0be6e4b4d1
commit
be50f1d743
@ -6254,6 +6254,7 @@ static int make_sync(struct mars_dent *dent)
|
|||||||
!dent->new_link) {
|
!dent->new_link) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
rot = dent->d_parent->d_private;
|
||||||
|
|
||||||
do_start = _check_allow(dent->d_parent->d_path, "attach");
|
do_start = _check_allow(dent->d_parent->d_path, "attach");
|
||||||
|
|
||||||
@ -6283,10 +6284,6 @@ static int make_sync(struct mars_dent *dent)
|
|||||||
do_start = false;
|
do_start = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
rot = dent->d_parent->d_private;
|
|
||||||
status = -ENOENT;
|
|
||||||
CHECK_PTR(rot, done);
|
|
||||||
|
|
||||||
rot->allow_update = true;
|
rot->allow_update = true;
|
||||||
assign_dent(&rot->syncstatus_dent, dent);
|
assign_dent(&rot->syncstatus_dent, dent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user