Skip to content

Commit b360e86

Browse files
committed
netloc: remove uninitialized pointer if error
Signed-off-by: Cyril Bordage <[email protected]>
1 parent 5a71a21 commit b360e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netloc/architecture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ int netloc_arch_set_global_resources(netloc_arch_t *arch)
364364
{
365365
int ret;
366366
int *current_nodes = NULL;
367-
int *slot_idx;
367+
int *slot_idx = NULL;
368368

369369
int num_nodes = HASH_COUNT(arch->nodes_by_name);
370370
if (!arch->has_slots) {

0 commit comments

Comments
 (0)