summaryrefslogtreecommitdiff
path: root/src/os_amiga.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_amiga.c')
-rw-r--r--src/os_amiga.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_amiga.c b/src/os_amiga.c
index 85e0c4ef0..a0fb5c084 100644
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -1619,8 +1619,7 @@ mch_getenv(char_u *var)
else
#endif
{
- vim_free(alloced);
- alloced = NULL;
+ VIM_CLEAR(alloced);
retval = NULL;
buf = alloc(IOSIZE);