bin/trash: Fix PVS 787
Fix 'err' is assigned values twice successively. Change-Id: I783094dacbd99880381d0359c66359177611506e Reviewed-on: https://review.haiku-os.org/746 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
4c5e5d8b04
commit
b63646d69c
@ -76,6 +76,8 @@ status_t trash(const char *f)
|
||||
return EALREADY;
|
||||
entry_ref er;
|
||||
err = get_ref_for_path(f, &er);
|
||||
if (err < 0)
|
||||
return err;
|
||||
BPath orgPath(&er);
|
||||
err = orgPath.InitCheck();
|
||||
if (err < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user