Hello,

the

const char *rtems_version_control_key( void )
{
#ifdef RTEMS_VERSION_VC_KEY
  return RTEMS_VERSION_VC_KEY;
#else
  return NULL;
#endif
}

returns NULL, if no RTEMS_VERSION_VC_KEY is defined, e.g. the RTEMS sources are not managed by Git. Naive users like me may produce a NULL pointer if they use it like this printf("version: %s", rtems_version_control_key()). Should we change this function to return "" instead of NULL?

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to