mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
init variable
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1593 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -121,7 +121,7 @@ void netSetDefaultRoute( char *gw )
|
||||
struct sockaddr_in *in_addr;
|
||||
unsigned char *addr;
|
||||
int fd;
|
||||
unsigned char adr_gw[4];
|
||||
unsigned char adr_gw[4] = {0};
|
||||
|
||||
scanip( gw, adr_gw );
|
||||
|
||||
|
@@ -184,7 +184,7 @@ void tuxtxt_decode_btt()
|
||||
{
|
||||
/* basic top table */
|
||||
int i, current, b1, b2, b3, b4;
|
||||
unsigned char btt[23*40];
|
||||
unsigned char btt[23*40] = {0};
|
||||
|
||||
if (tuxtxt_cache.subpagetable[0x1f0] == 0xff || 0 == tuxtxt_cache.astCachetable[0x1f0][tuxtxt_cache.subpagetable[0x1f0]]) /* not yet received */
|
||||
return;
|
||||
|
@@ -606,11 +606,11 @@ void CNetworkSetup::setWizardMode(bool mode)
|
||||
|
||||
void CNetworkSetup::showCurrentNetworkSettings()
|
||||
{
|
||||
char ip[16];
|
||||
char mask[16];
|
||||
char broadcast[16];
|
||||
char router[16];
|
||||
char nameserver[16];
|
||||
char ip[16] = {0};
|
||||
char mask[16] = {0};
|
||||
char broadcast[16] = {0};
|
||||
char router[16] = {0};
|
||||
char nameserver[16] = {0};
|
||||
std::string text;
|
||||
|
||||
netGetIP(g_settings.ifname, ip, mask, broadcast);
|
||||
|
Reference in New Issue
Block a user