Changeset 318


Ignore:
Timestamp:
02/15/10 15:27:14 (14 years ago)
Author:
bas
Message:

Fixed an segv in run_email2trac.c with the new python_egg cache setting. see #174

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r317 r318  
    353353
    354354                results =  email.Header.decode_header(message_str)
     355
    355356                s = None
    356357                for text,format in results:
  • trunk/run_email2trac.c

    r315 r318  
    5656
    5757  char   **trac_script_args;
    58   char   *python_egg_cache;
     58  char   *python_egg_cache = NULL;
    5959  struct passwd *TRAC;
    6060  struct passwd *MTA;
     
    126126 
    127127  /* Set PYTHON_EGG_CACHE env variable if we have been told to do so */
    128 /*
    129   if ( strlen(python_egg_cache) > 0 ) {
     128  if ( python_egg_cache != NULL ) {
    130129    setenv("PYTHON_EGG_CACHE",python_egg_cache ,1);
    131130  }
    132 */
    133131
    134132  /* Execute script */
Note: See TracChangeset for help on using the changeset viewer.