# HG changeset patch
# User Laurent Bessard
# Date 1368598817 -7200
# Node ID 59818c488ead96dce7f72158fe6bd11a26afe5bf
# Parent  8ded55ada6d6529210378d48d1cb5afc34f8b688
Fixed bug in ST code generator when function output variable has no name

diff -r 8ded55ada6d6 -r 59818c488ead plcopen/structures.py
--- a/plcopen/structures.py	Wed May 15 00:30:12 2013 +0200
+++ b/plcopen/structures.py	Wed May 15 08:20:17 2013 +0200
@@ -98,7 +98,7 @@
             if one_input_connected:
                 for i, variable in enumerate(output_variables):
                     parameter = variable.getformalParameter()
-                    if not inout_variables.has_key(parameter) and parameter in output_names + ["ENO"]:
+                    if not inout_variables.has_key(parameter) and parameter in output_names + ["", "ENO"]:
                         if variable.getformalParameter() == "":
                             variable_name = "%s%d"%(type, block.getlocalId())
                         else: