Nikolay Patch wrote: > 2016-04-15 0:10 GMT+03:00 Bram Moolenaar <[email protected]>: > > > > Patch 7.4.1743 > > Problem: Clang warns for uninitialzed variable. (Michael Jarvis) > > Solution: Initialize it. > > Files: src/if_py_both.h > > > > > > *** ../vim-7.4.1742/src/if_py_both.h 2016-04-14 17:40:52.668464428 +0200 > > --- src/if_py_both.h 2016-04-14 23:06:20.007064066 +0200 > > *************** > > *** 6070,6076 **** > > ConvertFromPySequence(PyObject *obj, typval_T *tv) > > { > > PyObject *lookup_dict; > > ! int ret; > > > > if (!(lookup_dict = PyDict_New())) > > return -1; > > --- 6070,6076 ---- > > ConvertFromPySequence(PyObject *obj, typval_T *tv) > > { > > PyObject *lookup_dict; > > ! int ret = 0; > > Actually I have a memory leak here. Correct patch is
Thanks! -- Facepalm statement #9: "Did you see, there is now even a hobbit book" /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
