diff --git a/src/kits/tracker/PoseViewScripting.cpp b/src/kits/tracker/PoseViewScripting.cpp index bdfab7ba81..1816742897 100644 --- a/src/kits/tracker/PoseViewScripting.cpp +++ b/src/kits/tracker/PoseViewScripting.cpp @@ -467,7 +467,7 @@ BPoseView::DeleteProperty(BMessage* specifier, int32 form, Delete(entryList, false, settings.AskBeforeDeleteFile()); } else { entry_ref* ref; - while (ref = entryList->RemoveItemAt(0)) + while ((ref = entryList->RemoveItemAt(0))) delete ref; delete entryList; }