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) {
|
||||
case 'p':
|
||||
rpath = strdup(optarg);
|
||||
rpath = g_strdup(optarg);
|
||||
break;
|
||||
case 'n':
|
||||
is_daemon = false;
|
||||
@ -1048,7 +1048,7 @@ int main(int argc, char **argv)
|
||||
sock = atoi(optarg);
|
||||
break;
|
||||
case 's':
|
||||
sock_name = strdup(optarg);
|
||||
sock_name = g_strdup(optarg);
|
||||
break;
|
||||
case 'u':
|
||||
own_u = atoi(optarg);
|
||||
|
Loading…
Reference in New Issue
Block a user