gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Fix plugin search with GLib 2.69.
2021-07-30, Elliott Sales de Andrade
fd4bb8956d03
Parents
69f6c8b88e5f
Children
863359790f9f
Fix plugin search with GLib 2.69.
Named groups in `GRegex` with GLib 2.69 appear to return empty, not `NULL` strings, so handle that when running version comparison.
This is actually what GLib documents should happen, but I guess didn't work right before.
Testing Done:
Compiled and ran tests on Fedora Rawhide with GLib 2.69.
Reviewed at https://reviews.imfreedom.org/r/856/
1 files changed, 1 insertions(+), 1 deletions(-)
+1
-1
gplugin/gplugin-manager.c
--- a/gplugin/gplugin-manager.c Thu Jul 29 23:34:56 2021 -0500
+++ b/gplugin/gplugin-manager.c Fri Jul 30 01:55:50 2021 -0500
@@ -1707,7 +1707,7 @@
plugins = gplugin_manager_find_plugins(id);
- if(op == NULL && version == NULL) {
+ if((op == NULL || *op == '\0') && (version == NULL || *version == '\0')) {
/* we weren't actually passed an operator and a version so just return
* the list we have based on the id.
*/