Page MenuHomeFreeBSD

D47266.id145391.diff
No OneTemporary

D47266.id145391.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
Sun, Mar 8, 7:46 AM (11 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29396918
Default Alt Text
D47266.id145391.diff (524 B)

Event Timeline