diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-08-17 19:57:12 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:36 +0100 |
commit | 7fa0bc44242e5faaed29ac6fe554831180b7fc92 (patch) | |
tree | 27bf5cde9f8d9f238383db9f023b062b03a4d918 /src/render_hkl.c | |
parent | e0ea45c6f3b5eb4c6e4937aa85b40d102de61dc6 (diff) |
render_hkl: Avoid segfault at end
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r-- | src/render_hkl.c | 2 |
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 ) { |