aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-17 19:57:12 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:36 +0100
commit7fa0bc44242e5faaed29ac6fe554831180b7fc92 (patch)
tree27bf5cde9f8d9f238383db9f023b062b03a4d918
parente0ea45c6f3b5eb4c6e4937aa85b40d102de61dc6 (diff)
render_hkl: Avoid segfault at end
-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 ) {