New URL for NEMO forge!

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#2387 (use uninitialized variable in sbcblk) – NEMO

Opened 4 years ago

Closed 4 years ago

#2387 closed Bug (fixed)

use uninitialized variable in sbcblk

Reported by: smasson Owned by: systeam
Priority: high Milestone:
Component: SBC Version: trunk
Severity: minor Keywords:



Following the merge of 2019 developments, we use sf(jfpr)%clrootname before its initialization in sbcblk


line 263 in sbcblk, we test sf(jfpr)%clrootname :

         IF( TRIM(sf(jfpr)%clrootname) == 'NOT USED' ) THEN    !--  not used field  --!   (only now allocated and set to zero)

but this variable is initialized by the call to fld_fill line 283


Move the call to fld_fill before using sf(jfpr)%clrootname: line 260
In addition, once this call is done, it is better to avoid to use slf_i as this structure is created only to fill sf. So we will use sf instead of slf_i lines: 271, 274, 277

Commit History (1)


trunk: fix uninitialized variable in sbcblk, see #2387

Change History (2)

comment:1 Changed 4 years ago by smasson

In 12459:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found

comment:2 Changed 4 years ago by smasson

  • Resolution set to fixed
  • Status changed from new to closed

fixed in [12459]

Note: See TracTickets for help on using tickets.