summaryrefslogtreecommitdiffstats
path: root/adf/libadf
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2014-05-07 14:55:30 -0700
committerGreg Hackmann <ghackmann@google.com>2014-05-07 15:27:59 -0700
commit20fcb78e5832fd63429c7f6105e32d7917975d72 (patch)
treedebdd2fd19742d5ca9b118d764cc2b00dfa5d850 /adf/libadf
parent8e26b2522267658ef996631a3a43818c1baf6fc3 (diff)
downloadsystem_core-20fcb78e5832fd63429c7f6105e32d7917975d72.zip
system_core-20fcb78e5832fd63429c7f6105e32d7917975d72.tar.gz
system_core-20fcb78e5832fd63429c7f6105e32d7917975d72.tar.bz2
libadf: silence false positive warning
Some versions of gcc warn that intfs may be used uninitialized Change-Id: I3b8d7e919e9c2902ac56adeabd09a45ececfb3c4 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'adf/libadf')
-rw-r--r--adf/libadf/adf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adf/libadf/adf.c b/adf/libadf/adf.c
index 871629e..1d19152 100644
--- a/adf/libadf/adf.c
+++ b/adf/libadf/adf.c
@@ -768,7 +768,7 @@ int adf_find_simple_post_configuration(struct adf_device *dev,
const __u32 *formats, size_t n_formats,
adf_id_t *interface, adf_id_t *overlay_engine)
{
- adf_id_t *intfs;
+ adf_id_t *intfs = NULL;
ssize_t n_intfs = adf_interfaces(dev, &intfs);
if (n_intfs < 0)