summaryrefslogtreecommitdiffstats
path: root/pcitool/sysinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcitool/sysinfo.c')
-rw-r--r--pcitool/sysinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcitool/sysinfo.c b/pcitool/sysinfo.c
index 7b25972..d6f57fe 100644
--- a/pcitool/sysinfo.c
+++ b/pcitool/sysinfo.c
@@ -104,7 +104,7 @@ int get_file_fs(const char *fname, size_t size, char *fs) {
if ((!fname)||(!fs)||(size < 3)) return -1;
- if (*fn == '/') {
+ if (*fname == '/') {
fn = (char*)fname;
} else {
if (!getcwd(buf, 4095)) return -1;