lib: Fix CID 1273073 Assign instead of compare