some inits

Origin commit data
------------------
Commit: 0fdb6505d8
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-24 (Sun, 24 Oct 2021)
This commit is contained in:
Jacek Jendrzej
2021-10-24 19:19:18 +02:00
committed by vanhofen
parent d0ab6a23a1
commit ac1946a473
4 changed files with 7 additions and 6 deletions

View File

@@ -582,7 +582,7 @@ enum XML_Error XML_Parser::doContent(int startTagLevel, const ENCODING *enc, con
for (;;) for (;;)
{ {
const char *next; const char *next = NULL;
int tok=XmlContentTok(enc, s, end, &next); int tok=XmlContentTok(enc, s, end, &next);
*eventEndPP = next; *eventEndPP = next;
@@ -1232,7 +1232,7 @@ enum XML_Error XML_Parser::doCdataSection(const ENCODING *enc, const char **star
for (;;) for (;;)
{ {
const char *next; const char *next = NULL;
int tok=XmlCdataSectionTok(enc, s, end, &next); int tok=XmlCdataSectionTok(enc, s, end, &next);
@@ -1843,7 +1843,7 @@ enum XML_Error epilogProcessor(void *parser, const char *s, const char *end, con
for (;;) for (;;)
{ {
const char *next; const char *next = NULL;
int tok=XmlPrologTok(p->encoding, s, end, &next); int tok=XmlPrologTok(p->encoding, s, end, &next);
p->eventEndPtr=next; p->eventEndPtr=next;

View File

@@ -75,7 +75,7 @@ int CInfoMenu::exec(CMenuTarget *parent, const std::string &actionKey)
if (actionKey == "cs_get_info") if (actionKey == "cs_get_info")
{ {
#if HAVE_CST_HARDWARE #if HAVE_CST_HARDWARE
char str[1024]; char str[1024] = {};
sprintf(str, "cs_get_revision(): 0x%02X\n", cs_get_revision()); sprintf(str, "cs_get_revision(): 0x%02X\n", cs_get_revision());
sprintf(str, "%scs_get_chip_type(): 0x%04X\n", str, cs_get_chip_type()); sprintf(str, "%scs_get_chip_type(): 0x%04X\n", str, cs_get_chip_type());
ShowMsg(LOCALE_MESSAGEBOX_INFO, str, CMsgBox::mbrBack, CMsgBox::mbBack); ShowMsg(LOCALE_MESSAGEBOX_INFO, str, CMsgBox::mbrBack, CMsgBox::mbBack);

View File

@@ -338,7 +338,7 @@ int CLuaInstMenu::MenuAddItem(lua_State *L)
lua_assert(lua_istable(L, 2)); lua_assert(lua_istable(L, 2));
CMenuItem *mi = NULL; CMenuItem *mi = NULL;
CLuaMenuItem i; CLuaMenuItem i = {};
D->items.push_back(i); D->items.push_back(i);
CLuaMenuItem *b = &D->items.back(); CLuaMenuItem *b = &D->items.back();

View File

@@ -3043,11 +3043,12 @@ void CControlAPI::doNewTimer(CyhookHandler *hh)
std::string _rec_dir = hh->ParamList["rec_dir"]; std::string _rec_dir = hh->ParamList["rec_dir"];
void *data=NULL; void *data=NULL;
bool standby_on = false;
if(type == CTimerd::TIMER_RECORD) if(type == CTimerd::TIMER_RECORD)
announceTimeT-=120; announceTimeT-=120;
if(type == CTimerd::TIMER_STANDBY) if(type == CTimerd::TIMER_STANDBY)
{ {
bool standby_on = (hh->ParamList["sbon"]=="1"); standby_on = (hh->ParamList["sbon"]=="1");
data=&standby_on; data=&standby_on;
} }
/* else if(type==CTimerd::TIMER_NEXTPROGRAM || type==CTimerd::TIMER_ZAPTO) */ /* else if(type==CTimerd::TIMER_NEXTPROGRAM || type==CTimerd::TIMER_ZAPTO) */