Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » [Web] using of an uninitialized value in expression
[Web] using of an uninitialized value in expression [message #38643] Tue, 01 January 2013 00:10 Go to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Index: util.h
===================================================================
--- util.h      (revision 5690)
+++ util.h      (working copy)
@@ -213,7 +213,7 @@
 
 public:
        HttpQuery(const Nuller& = Null) : data(Empty())    { case_sensitive = false; }
-       explicit HttpQuery(String url) { data = Empty(); SetURL(url); case_sensitive = false; }
+       explicit HttpQuery(String url) { data = Empty(); case_sensitive = false; SetURL(url); }
 
        void                   CaseSensitive(bool b = true) { case_sensitive = b; }


case_sensitive = false; should be called before SetURL(url);

I do not have permissions to commit this change myself.

TIA


Regards,
Novo
Re: [Web] using of an uninitialized value in expression [message #38652 is a reply to message #38643] Tue, 01 January 2013 13:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks. Web is deprecated, but this is still bug Smile

Mirek
Re: [Web] using of an uninitialized value in expression [message #38660 is a reply to message #38652] Tue, 01 January 2013 19:27 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Tue, 01 January 2013 07:46

Thanks. Web is deprecated, but this is still bug Smile

Mirek


IMHO, it is a good idea to initialize members in initialization list. This significantly lowers a chance of introducing bugs.


Regards,
Novo
Previous Topic: Redirect - possibly another Skylark bug
Next Topic: A few questions about Skylark sessions
Goto Forum:
  


Current Time: Sat Apr 20 10:43:21 CEST 2024

Total time taken to generate the page: 0.04633 seconds