summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2025-01-23 23:43:30 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-02-14 19:45:12 +0100
commite9461c19db6d6c353b6a5355ead8dda2e9045229 (patch)
treeee8180dd06c30e40a24ca0e8278449d25a0e0401 /apt-pkg
parentc3b35fb1c8f12786bd3e68bd260e0488e17806d9 (diff)
flAbsPath(): try to re-use storage of argument
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 4e72d8462..c74632218 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -773,9 +773,9 @@ string flAbsPath(string File)
_error->Errno("realpath", "flAbsPath on %s failed", File.c_str());
return "";
}
- std::string AbsPath(p);
+ File = p;
free(p);
- return AbsPath;
+ return File;
}
/*}}}*/
std::string flNormalize(std::string file) /*{{{*/