Page MenuHomeFreeBSD

D47266.id145405.diff
No OneTemporary

D47266.id145405.diff

diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -147,7 +147,9 @@
parse:
while (argc > 0) {
- if ((p = strdup(*argv)) == NULL)
+ char *orig;
+
+ if ((orig = p = strdup(*argv)) == NULL)
err(1, "strdup(%s)", *argv);
/* Check if we're using the shorthand syntax for volume setting. */
@@ -200,7 +202,7 @@
/* Input: `dev.control=val`. */
cp->mod(cp->parent_dev, valstr);
next:
- free(p);
+ free(orig);
argc--;
argv++;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 8:59 PM (10 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14328118
Default Alt Text
D47266.id145405.diff (524 B)

Event Timeline