Update metadata.c
Merge pull request #1056 from xboston/patch-3

Update metadata.c