mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-27 08:56:52 -05:00
utils: use pa_path_get_filename() where applicable
This commit is contained in:
parent
8bada7496c
commit
4d874753f5
3 changed files with 6 additions and 24 deletions
|
|
@ -235,10 +235,7 @@ int main(int argc, char *argv[]) {
|
|||
setlocale(LC_ALL, "");
|
||||
bindtextdomain(GETTEXT_PACKAGE, PULSE_LOCALEDIR);
|
||||
|
||||
if (!(bn = strrchr(argv[0], '/')))
|
||||
bn = argv[0];
|
||||
else
|
||||
bn++;
|
||||
bn = pa_path_get_filename(argv[0]);
|
||||
|
||||
while ((c = getopt_long(argc, argv, "s:h", long_options, NULL)) != -1) {
|
||||
switch (c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue