Fix gnu c compiler error when the variable is the same