[libgfortran,patch] Zero-length strings messed up in library (PR33079)

Tobias Schlüter Tobias.Schlueter@physik.uni-muenchen.de
Thu Aug 16 17:15:00 GMT 2007


Tobias Schlüter wrote:
> An alternative would be to have a
>  static char zero_length_string[0]; // Maybe [1]
> at file scope and then do
>  *dest = zero_length_string;
> This would evade the unnecessary allocations.

Or the even shorter:
   static char zero_length_string;
   ...
   *dest = &zero_length_string;

- Tobi



More information about the Fortran mailing list