Blob Blame Raw
--- pkg-config-0.18.1/pkg.c.free	2005-08-09 16:21:57.964630000 -0400
+++ pkg-config-0.18.1/pkg.c	2005-08-09 16:22:07.295289000 -0400
@@ -1241,7 +1241,8 @@
     }
 
   /* chop last space */
-  str->str[str->len - 1] = '\0';
+  if (str->len)
+     str->str[str->len - 1] = '\0';
   retval = str->str;
   g_string_free (str, FALSE);