Commit 845b8c5
committed
return
From glib 2.84.1, `g_variant_store` will not accept `NULL` values
instead failing an assertion and throwing a critical error.
In the case where `variant` == `NULL`, instead we can wrap and return
a `g_variant_new_maybe` with a child of `NULL` to achieve the same
effective result.
Closes: #623
Signed-off-by: Matt Jolly <[email protected]>g_variant_new_maybe for NULL variants1 parent c6ffc06 commit 845b8c5
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
364 | 370 | | |
365 | 371 | | |
366 | 372 | | |
| |||
0 commit comments