-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uninitialized value in init_channel #326
Comments
Could you put steps to reproduce? I'm suspecting m->tried_getuser is the culprit and needs adding at chan.c L1071 and chan.c L1793. |
Joining a channel that is empty (the bot is the first user) |
You're on the right path- I stuck it in there and set to 1 just as a quick fix, and that seems to have 'fixed' it. Question is, do those calls belong there, or should it be initialized earlier, or a little bit of both? I can look at it in a bit, but I'm going to bet you'll be faster :) |
fix: change tclchan.c:1937 (init_channel) to use channel_malloc instead of nmalloc for the first element of the chan->channel.member list |
* Call bzero() after nmalloc() when initializing a new channel to properly zero all data since channel_malloc() isn't available.
The text was updated successfully, but these errors were encountered: