Ignore:
Timestamp:
Apr 20, 2009, 5:59:31 PM (16 years ago)
Author:
katerina
Message:

Fix warnings with -fstack-check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_userfiles.c

    r203 r227  
    251251    struct userhomeslist *new;
    252252    struct userhomeslist *homes;
     253    char * filepath;
    253254    (void) arg;
    254255
     
    297298    SH_MUTEX_UNLOCK(mutex_pwent);
    298299
     300    filepath = SH_ALLOC(PATH_MAX);
     301
    299302    for (homes = userHomes; homes != NULL; homes = homes->next ) {
    300303        struct userfileslist *file_ptr;
    301         char filepath[PATH_MAX];
    302304
    303305        for (file_ptr = userFiles; file_ptr != NULL; file_ptr = file_ptr->next) {
     
    348350        }
    349351    }
     352
     353    SH_FREE(filepath);
    350354
    351355    SL_RETURN(0, _("sh_userfiles_init"));
Note: See TracChangeset for help on using the changeset viewer.