Commit 1c5d500
committed
importer: do not iterate search path dir if error exists
If g_file_enumerate_children encounters an error for a search path it will return NULL. This can happen for directories that do not exist.
It is a programmer error to pass NULL to g_file_enumerator_iterate, so break out of the directory processing loop if we do not have a directory to iterate on.1 parent e0e48de commit 1c5d500
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
671 | 672 | | |
672 | 673 | | |
673 | 674 | | |
674 | | - | |
| 675 | + | |
| 676 | + | |
675 | 677 | | |
676 | 678 | | |
677 | 679 | | |
| |||
0 commit comments