From 7fa0bc44242e5faaed29ac6fe554831180b7fc92 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 17 Aug 2011 19:57:12 +0200 Subject: render_hkl: Avoid segfault at end --- src/render_hkl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ) { -- cgit v1.2.3