diff --git a/Fltk/pluginWindow.cpp b/Fltk/pluginWindow.cpp
index cc2d7575542e356d3648ef88d00a2be824eaac4b..b83fe8061891de0373bdc618acde1e03da189226 100644
--- a/Fltk/pluginWindow.cpp
+++ b/Fltk/pluginWindow.cpp
@@ -122,7 +122,7 @@ static void add_scripting(GMSH_PostPlugin *p, PView *view)
   else
     fileName = GModel::current()->getFileName();
 
-  fileName +=  + ".opt";
+  fileName += ".opt";
   FILE *fp = fopen(fileName.c_str(), "a");
   if(!fp){
     Msg::Error("Could not open file '%s'", fileName.c_str());