diff options
| author | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:18 +0200 |
| commit | 537bfce2bda471c92caabd388589230200891509 (patch) | |
| tree | aedeccfaf0ba52c238ecf51fc009c0db5d4b60f0 /src/nmtui/nmt-editor-grid.c | |
| parent | 869e9027026cdbb15d4e4a6327ff41d2697858eb (diff) | |
New upstream version 1.58~rc1 upstream/1.58_rc1
Diffstat (limited to 'src/nmtui/nmt-editor-grid.c')
| -rw-r--r-- | src/nmtui/nmt-editor-grid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nmtui/nmt-editor-grid.c b/src/nmtui/nmt-editor-grid.c index bdcc02e2..21d362c4 100644 --- a/src/nmtui/nmt-editor-grid.c +++ b/src/nmtui/nmt-editor-grid.c @@ -244,8 +244,10 @@ nmt_editor_grid_get_components(NmtNewtWidget *widget) if (rows[i].extra) { child_cos = nmt_newt_widget_get_components(rows[i].extra); - for (c = 0; child_cos[c]; c++) - g_ptr_array_add(cos, child_cos[c]); + if (child_cos) { + for (c = 0; child_cos[c]; c++) + g_ptr_array_add(cos, child_cos[c]); + } g_free(child_cos); } } |