diff options
Diffstat (limited to 'plugins/sysinfo/pci.c')
-rw-r--r-- | plugins/sysinfo/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sysinfo/pci.c b/plugins/sysinfo/pci.c index bc8fb11f..9946c446 100644 --- a/plugins/sysinfo/pci.c +++ b/plugins/sysinfo/pci.c @@ -115,9 +115,10 @@ void pci_find_fullname(char *fullname, char *vendor, char *device) char devicename[bsize/2] = ""; char *position; int cardfound = 0; + FILE *fp; sysinfo_get_pciids (buffer); - FILE *fp = fopen (buffer, "r"); + fp = fopen (buffer, "r"); if(fp == NULL) { snprintf(fullname, bsize, "%s:%s", vendor, device); |