Permalink
Browse files

merged patch from mavam to fix compiler warning about uninitialized w…

…arning
  • Loading branch information...
2 parents 0679dfb + e260013 commit 4df7888efb945e4bad9a2fddaafe67267c31efb7 @Neverlord Neverlord committed Sep 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/group_server.cpp
@@ -40,7 +40,7 @@ int main(int argc, char** argv) {
announce<vector<string>>();
announce<str_uint16_pair>(&str_uint16_pair::first, &str_uint16_pair::second);
- uint16_t port;
+ uint16_t port = 0;
bool args_valid = argc > 1 && match_stream<string>(argv + 1, argv + argc) (
on_opt('p', "port") >> [&](const string& arg) -> bool {
if (!(istringstream(arg) >> port)) {

0 comments on commit 4df7888

Please sign in to comment.