Merge "libsparse: use strcmp and validate last_used pointer"