aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/render_hkl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index a3cd48c6..999b51be 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -656,7 +656,7 @@ int main(int argc, char *argv[])
weighting = strdup("I");
}
- if ( outfile == NULL ) outfile = "za.pdf";
+ if ( outfile == NULL ) outfile = strdup("za.pdf");
if ( strcmp(weighting, "I") == 0 ) {