summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UEngines.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/UEngines.pas b/UEngines.pas
index 5e3909c..cc0e1f3 100644
--- a/UEngines.pas
+++ b/UEngines.pas
@@ -321,6 +321,7 @@ begin
libc_free(StatBuf);
if Item^.IsLnk then begin
+ memset(@LnkBuf[0], 0, Length(LnkBuf));
i := readlink(PChar(APath), LnkBuf, sizeof(LnkBuf));
if i >= 0 then
Item^.LnkPointTo := g_strdup(@LnkBuf[0]);