- Add gri-invalid-char-to-pointer.patch: Fix a char to char* conversion by replacing '\0' with NULL. - Cleanup spec file by removing conditionals for outdated openSUSE versions, running spec-cleaner. OBS-URL: https://build.opensuse.org/request/show/506242 OBS-URL: https://build.opensuse.org/package/show/science/gri?expand=0&rev=14
14 lines
449 B
Diff
14 lines
449 B
Diff
Index: gri-2.12.23/src/query.cc
|
|
===================================================================
|
|
--- gri-2.12.23.orig/src/query.cc
|
|
+++ gri-2.12.23/src/query.cc
|
|
@@ -56,7 +56,7 @@ queryCmd()
|
|
if (!find_hint_and_def(hint, def)) {
|
|
return false;
|
|
}
|
|
- def_word[0] = '\0';
|
|
+ def_word[0] = NULL;
|
|
chop_into_words(def, def_word, &def_words, NCHAR);
|
|
// Strip off double-quotes form list of defaults
|
|
for (unsigned int i = 0; i < def_words; i++) {
|