]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- don't pass empty string to gettext()
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 9 Mar 2004 09:47:38 +0000 (09:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-gettext-in-header.patch -> 1.3

rpm-gettext-in-header.patch

index be46eee5db5d660d302e01c77b13e0a71202bda4..9e3ff96810310789337e83ee82f1ad0f42c3a389 100644 (file)
@@ -6,7 +6,7 @@
  
 -    return entry->data;
 +/* when everything fail, try gettext */
-+    return _(entry->data);
++    return ((entry->data != NULL) && *(char*)(entry->data)) ? _(entry->data) : entry->data;
  }
  
  /**
This page took 0.044605 seconds and 4 git commands to generate.