projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We have `NULL' in order to not need to write `(char *)0' anymore.
[mmh]
/
uip
/
mhlistsbr.c
diff --git
a/uip/mhlistsbr.c
b/uip/mhlistsbr.c
index
7830173
..
ecd6bac
100644
(file)
--- a/
uip/mhlistsbr.c
+++ b/
uip/mhlistsbr.c
@@
-207,7
+207,7
@@
list_content(CT ct, int toplevel, int realsize, int verbose, int debug)
if (ct->c_descr) {
char *dp;
if (ct->c_descr) {
char *dp;
- dp = trimcpy(cp = add(ct->c_descr, NULL));
+ dp = trimcpy(cp = getcpy(ct->c_descr));
free(cp);
printf(LSTFMT2d1, dp);
free(dp);
free(cp);
printf(LSTFMT2d1, dp);
free(dp);
@@
-222,7
+222,7
@@
list_content(CT ct, int toplevel, int realsize, int verbose, int debug)
if (verbose && ci->ci_comment) {
char *dp;
if (verbose && ci->ci_comment) {
char *dp;
- dp = trimcpy(cp = add(ci->ci_comment, NULL));
+ dp = trimcpy(cp = getcpy(ci->ci_comment));
free(cp);
snprintf(buffer, sizeof(buffer), "(%s)", dp);
free(dp);
free(cp);
snprintf(buffer, sizeof(buffer), "(%s)", dp);
free(dp);