Changeset 91b858d in rtems-libbsd


Ignore:
Timestamp:
Oct 16, 2018, 9:24:10 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
Children:
c464b9e4
Parents:
4a5f546
git-author:
Sebastian Huber <sebastian.huber@…> (10/16/18 09:24:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/16/18 11:29:16)
Message:

mDNSResponder: Fix use of uninitialized variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mDNSResponder/mDNSPosix/mDNSPosix.c

    r4a5f546 r91b858d  
    449449    (void) BrowseDomains;
    450450    (void) ackConfig;
     451#ifdef __rtems__
     452    /*
     453     * Copied from mDNSMacOSX/mDNSMacOSX.c to prevent use of uninitialized
     454     * stack variables.
     455     */
     456    if (fqdn         ) fqdn->c[0]      = 0;
     457    if (RegDomains   ) *RegDomains     = NULL;
     458    if (BrowseDomains) *BrowseDomains  = NULL;
     459#endif /* __rtems__ */
    451460
    452461    return mDNStrue;
Note: See TracChangeset for help on using the changeset viewer.