virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
fd3bea3f44
commit
606017de2f
@ -1039,7 +1039,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'p':
|
case 'p':
|
||||||
rpath = strdup(optarg);
|
rpath = g_strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
is_daemon = false;
|
is_daemon = false;
|
||||||
@ -1048,7 +1048,7 @@ int main(int argc, char **argv)
|
|||||||
sock = atoi(optarg);
|
sock = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
sock_name = strdup(optarg);
|
sock_name = g_strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
own_u = atoi(optarg);
|
own_u = atoi(optarg);
|
||||||
|
Loading…
Reference in New Issue
Block a user