The patch attached I just attached in bug #1562520 corrects it and corrects bug #1561034 too in a better way.
it also free a string that was not freed in the bug #1561034 patched function that lead me to wrong patch.
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=1562520&group_id=93438
There are nothing in guide line about comment and cast.
I do a cast (gchar *) for a temporary 'gchar *' from a 'const gchar *' given by attribute() function.
And about comment : in src/path-chemistery.cpp there are C style single line comments: /* foo bar */
but in src/splivarot.cpp there are c++ comments: // foo bar
and some time not spaced text and c++ style comments //foo bar
Is there no project to add something about that in coding style guide?