Browse Source

Merge pull request #983 from ajwerner/fix-variable-name

aya::programs::uprobe: fix bad variable name
Dave Tucker 9 months ago
parent
commit
d5414bf10c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      aya/src/programs/uprobe.rs

+ 2 - 2
aya/src/programs/uprobe.rs

@@ -95,8 +95,8 @@ impl UProbe {
             0
             0
         };
         };
 
 
-        let fn_name = path.as_os_str();
-        attach(&mut self.data, self.kind, fn_name, sym_offset + offset, pid)
+        let path = path.as_os_str();
+        attach(&mut self.data, self.kind, path, sym_offset + offset, pid)
     }
     }
 
 
     /// Detaches the program.
     /// Detaches the program.