linux: Fix a crash in populate_devices

If scandir returns -1, the 'devices' array won't be initialized, and
attempting to free() it will crash.

Signed-off-by: Adam Jackson <ajax@redhat.com>
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index bbd4dfa..2085ffb 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -122,7 +122,7 @@
 int
 populate_entries( struct pci_system * p )
 {
-    struct dirent ** devices;
+    struct dirent ** devices = NULL;
     int n;
     int i;
     int err = 0;