Files
gri/gri-invalid-char-to-pointer.patch
Ismail Dönmez 343c37b81c Accepting request 506242 from home:badshah400:gcc7_fixes
- 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
2017-06-26 12:05:21 +00:00

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++) {