tgt/tgt-compare-pointer-to-null.patch
Lee Duncan 4a9d703312 Accepting request 629014 from home:lee_duncan:branches:Base:System
- Fixing build issue with "major()" and a pointer
  comparison warning while I was at it, adding patches:
  * tgt-include-sys-macros-for-major.patch
  * tgt-compare-pointer-to-null.patch

OBS-URL: https://build.opensuse.org/request/show/629014
OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=41
2018-08-13 15:48:07 +00:00

13 lines
426 B
Diff

diff -aurp tgt-1.0.60.orig/usr/tgtd.c tgt-1.0.60/usr/tgtd.c
--- tgt-1.0.60.orig/usr/tgtd.c 2015-07-01 17:10:39.000000000 -0700
+++ tgt-1.0.60/usr/tgtd.c 2018-08-11 18:08:50.707873331 -0700
@@ -310,7 +310,7 @@ int call_program(const char *cmd, void (
pos = arg;
str_spacecpy(&pos, cmd);
if (strchr(cmd, ' ')) {
- while (pos != '\0')
+ while (pos != NULL)
argv[i++] = strsep(&pos, " ");
} else
argv[i++] = arg;