Skip to content

Commit c52c47d

Browse files
committed
FIX: silenced possibly uninitialized variables warnings
1 parent 62d8db7 commit c52c47d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/f-stubs.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
**
8282
***********************************************************************/
8383
{
84-
REBINT n;
84+
REBINT n = 0;
8585

8686
if (IS_INTEGER(val)) {
8787
if (VAL_INT64(val) > (i64)MAX_I32 || VAL_INT64(val) < (i64)MIN_I32)
@@ -693,7 +693,7 @@
693693
**
694694
***********************************************************************/
695695
{
696-
REBI64 len;
696+
REBI64 len = 0;
697697
REBINT maxlen;
698698
REBINT is_ser = ANY_SERIES(sval);
699699

src/os/posix/dev-file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static int Get_File_Info(REBREQ *file)
276276
{
277277
char *cp;
278278
glob_t *g;
279-
int n, p, end;
279+
int n, p, end = 0;
280280
int wld = -1;
281281

282282
if (!(g = dir->handle)) {

0 commit comments

Comments
 (0)