[MPlayer-dev-eng] m_option.c - > print_int -> NULL ptr

Gabriel VLASIU gabrielvlasiu at gmail.com
Tue Mar 3 18:58:55 CET 2009


static char* print_int(const m_option_t* opt,  const void* val) {
  opt = NULL; ///// ??? WHY?
  if (opt->type->size == sizeof(int64_t))
    return dup_printf("%"PRId64, *(const int64_t *)val);
  return dup_printf("%d",VAL(val));
}

This is wrong. "opt" should never be asigned to NULL inside the
function. Please delete that line as is wrong.


Gabriel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MPlayer-20090303-gui-nullptr.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090303/b873733d/attachment.bin>


More information about the MPlayer-dev-eng mailing list