mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Silence "may be used uninitialized" warning, use Batoi() for user input.
Nag: The behavoir of atoi() is *undefined* if "the value of the result cannot be represented" (C99 7.20.1). Note: my nagging about undefined behaviors will *not* get less over time. :P git-svn-id: https://svn.eduke32.com/eduke32@3660 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1773ac9276
commit
964e16a506
1 changed files with 2 additions and 2 deletions
|
@ -8777,7 +8777,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
|
|||
{
|
||||
if (argc > i+1)
|
||||
{
|
||||
g_usingAddon = atoi(argv[i+1]);
|
||||
g_usingAddon = Batoi(argv[i+1]);
|
||||
|
||||
if (g_usingAddon > ADDON_NONE && g_usingAddon < NUMADDONS)
|
||||
g_noSetup = 1;
|
||||
|
@ -10122,7 +10122,7 @@ void G_MaybeAllocPlayer(int32_t pnum)
|
|||
void G_LoadAddon(void)
|
||||
{
|
||||
struct grpfile * grp;
|
||||
int32_t crc;
|
||||
int32_t crc = 0; // compiler-happy
|
||||
|
||||
switch (g_usingAddon)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue