Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682110 - sys-apps/install-xattr-0.6: warning: ‘target’ may be used uninitialized in this function
Summary: sys-apps/install-xattr-0.6: warning: ‘target’ may be used uninitialized in th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-31 08:58 UTC by Michał Górny
Modified: 2019-04-14 19:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/sys-apps:install-xattr-0.6:20190331-085609.log (sys-apps:install-xattr-0.6:20190331-085609.log,2.87 KB, text/plain)
2019-03-31 08:58 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-31 08:58:26 UTC
Created attachment 571354 [details]
/var/log/portage/sys-apps:install-xattr-0.6:20190331-085609.log

install-xattr.c: In function ‘main’:
install-xattr.c:334:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
   chdir(oldpwd);
   ^~~~~~~~~~~~~
install-xattr.c:397:13: warning: ‘target’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      path = path_join(target, basename(argv[i]));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Anthony Basile gentoo-dev 2019-04-14 19:25:42 UTC
(In reply to Michał Górny from comment #0)
> Created attachment 571354 [details]
> /var/log/portage/sys-apps:install-xattr-0.6:20190331-085609.log
> 
> install-xattr.c: In function ‘main’:
> install-xattr.c:334:3: warning: ignoring return value of ‘chdir’, declared
> with attribute warn_unused_result [-Wunused-result]
>    chdir(oldpwd);
>    ^~~~~~~~~~~~~
> install-xattr.c:397:13: warning: ‘target’ may be used uninitialized in this
> function [-Wmaybe-uninitialized]
>       path = path_join(target, basename(argv[i]));
>              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is fixed with sys-apps/install-xattr-0.7

Please reopen if there are any other issues.