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:
Murai Takashi 2018-11-19 08:35:31 +09:00 committed by waddlesplash
parent 4c5e5d8b04
commit b63646d69c

View File

@ -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)