fd: move relative path string to library

Use a single static variable located in the library, instead of
having a separate one for each compilation unit.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2020-12-17 17:54:52 -05:00
Ursprung 420c218c83
Commit 8a2fb75462
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
+2
Datei anzeigen
@@ -529,6 +529,8 @@ namespace crucible {
THROW_ERROR(runtime_error, "readlink: maximum buffer size exceeded");
}
static string __relative_path;
string
relative_path()
{