Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix noisy warnings about medium: uninitialized value in numeric eq/ne #1396

Merged
merged 2 commits into from
Feb 24, 2020

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Feb 20, 2020

Fix two not serious but very noisy warnings (in website server logs) that are often triggered when attaching a CDTOC or editing a tracklist. See commits’ message for details.

These replace the just wrong commits 88a904c and 54139c6 picked from #1377

When tracklist is slightly modified without changing recordings,
`recording_id` is legitimately not defined in sdiff `@changes`.

Since 0 is not a possible value for recording id, this patch defaults
undefined recording id to 0 for comparison between old and new ids.
Track length may legitimately be unknown when no CDTOC is attached yet.
@yvanzo yvanzo merged commit 314ec59 into metabrainz:master Feb 24, 2020
@yvanzo yvanzo deleted the fix-medium-warnings branch February 24, 2020 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants