Skip to content
  • 卜部昌平's avatar
    e7b18ca6
    glibc says memcpy cannot take NULL · e7b18ca6
    卜部昌平 authored
    At least since 2004, glibc's <string.h> annotates memcpy as
    __attribute__((__nonnull__)).  On the other hand the argv here,
    which is passed from rb_funcallv, may be NULL.  Practically this
    should never be a serious problem but for maximum safety, let's
    avoid passing NULL here.
    e7b18ca6
    glibc says memcpy cannot take NULL
    卜部昌平 authored
    At least since 2004, glibc's <string.h> annotates memcpy as
    __attribute__((__nonnull__)).  On the other hand the argv here,
    which is passed from rb_funcallv, may be NULL.  Practically this
    should never be a serious problem but for maximum safety, let's
    avoid passing NULL here.
Loading