libmetrics: Return error indication up through get_metric.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 10 May 2012 09:14:50 +0000 (10:14 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 10 May 2012 09:14:50 +0000 (10:14 +0100)
commitefba4feaef25ea7efc9e35cfa6e92b69784aa88f
treeac1e1ddceb0cd7453a3b7de1978ddee3fe381388
parent8684995d87e08fadd44e1814e810c770a1f60273
libmetrics: Return error indication up through get_metric.

If private function 'get_mdef' returns an error, then the error is not
propagated back to the user because it gets lost in 'get_metric'.  Fix
this by initializing 'ret' correctly.
libmetrics/libmetrics.c