summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/subsurfacestartup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index db18c34ce..85235b9f7 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -128,9 +128,9 @@ const char *monthname(int mon)
*/
bool imported = false;
-bool version_printed = false;
void print_version()
{
+ static bool version_printed = false;
if (version_printed)
return;
printf("Subsurface v%s,\n", subsurface_git_version());