summaryrefslogtreecommitdiff
path: root/src/import/export-raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/export-raw.c')
-rw-r--r--src/import/export-raw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/import/export-raw.c b/src/import/export-raw.c
index 9cab838b96..bdad19f1ea 100644
--- a/src/import/export-raw.c
+++ b/src/import/export-raw.c
@@ -122,8 +122,7 @@ int raw_export_new(
return r;
}
- *ret = e;
- e = NULL;
+ *ret = TAKE_PTR(e);
return 0;
}