[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

unused sequence?



Hello,

While figuring out what one message is for (I'm in process of translating
dpkg's messages into Russian), I found that in file lib/mlib.c file, at
line 158, a buffer (sbuf) is prepared for later reuse, but it's never
used: in case of error, the error message is just printed out.  I believe
this small patch should be applied.

--
Mike

--- lib/mlib.c.old      Tue Dec 28 01:03:02 1999
+++ lib/mlib.c  Tue Dec 28 01:03:14 1999
@@ -162,7 +162,7 @@
     sbuf[count-1] = 0;

     if(count < 0)
-       ohshite(_("failed in copy on read (control)"));
+       ohshite(sbuf);
     free(sbuf);
     free(buf);
 }


Reply to: