A story of uninitialized variable
By
Berkus on April 28, 2006 in Development.
Screwed up with Find in chat, was fixing one thing and broke another.
The current internal chat structure as not as good as I want it to be. So in order to fix some serious crashes I need to work around existing problems in design by disabling some functionality. This time searching in chat was crashing Skype if you expanded history and tried to search while it was expanding. The workaround is easy — disable Find while history is expanding. However, with all this 100 million registered users excitement I forgot to initialize flag that enables/disables search. And now we have Find that doesn’t work until you expand history. Not Good.
Do not forget to initialize your variables! :)
And hope to see your nick along those 100M registered, or may be next 100M.




