]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-gettext-in-header.patch
- rel 46; missing import
[packages/rpm.git] / rpm-gettext-in-header.patch
index be46eee5db5d660d302e01c77b13e0a71202bda4..935f6124b4649e1e4bab1c235034e03c5ec560ff 100644 (file)
@@ -1,12 +1,12 @@
 --- rpm-4.1/rpmdb/header.c.wiget2      Thu Sep 19 00:47:29 2002
 +++ rpm-4.1/rpmdb/header.c     Thu Sep 19 00:52:10 2002
 @@ -1645,7 +1645,8 @@
+       if (ed_weak) return (char *) ed_weak;
      }
- /*@=boundsread@*/
  
--    return entry->data;
+-    return (char *) entry->data;
 +/* when everything fail, try gettext */
-+    return _(entry->data);
++    return ((entry->data != NULL) && *(char*)(entry->data)) ? _(entry->data) : (char *) entry->data;
  }
  
  /**
This page took 0.131518 seconds and 4 git commands to generate.