IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3298 for trunk/psLib/src


Ignore:
Timestamp:
Feb 22, 2005, 9:25:53 AM (21 years ago)
Author:
desonia
Message:

fixed multiple small bugs, including bug 302.

Location:
trunk/psLib/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psBitSet.c

    r3264 r3298  
    1111 *  @author Robert DeSonia, MHPCC
    1212 *
    13  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-02-17 19:26:23 $
     13 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-02-22 19:25:52 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    186186        return NULL;
    187187    }
    188 
    189     // make operator all caps
    190     psS32 tempStrLen = strlen(operator);
    191     char* tempStr = psAlloc(tempStrLen+1);
    192 
    193     for (psS32 lcv=0;lcv<tempStrLen;lcv++) {
    194         tempStr[lcv] = (char)toupper(operator[lcv]);
    195     }
    196     tempStr[tempStrLen] = '\0';
    197188
    198189    // parse the operator
     
    206197        op = NOT_OP;
    207198    } else {
    208         psFree(tempStr);
    209199        psFree(outBitSet);
    210200        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     
    213203        return NULL;
    214204    }
    215     psFree(tempStr);
    216205
    217206    if (op != NOT_OP) {
  • trunk/psLib/src/dataIO/psFits.c

    r3264 r3298  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-02-17 19:26:24 $
     9 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-02-22 19:25:52 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14961496                    }
    14971497                    if (! found) {
    1498                         psArrayAdd(columns, columns->nalloc, psMemIncrRefCounter(item));
     1498                        psArrayAdd(columns, columns->nalloc, item);
    14991499                    }
    15001500                }
  • trunk/psLib/src/fileUtils/psFits.c

    r3264 r3298  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-02-17 19:26:24 $
     9 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-02-22 19:25:52 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14961496                    }
    14971497                    if (! found) {
    1498                         psArrayAdd(columns, columns->nalloc, psMemIncrRefCounter(item));
     1498                        psArrayAdd(columns, columns->nalloc, item);
    14991499                    }
    15001500                }
  • trunk/psLib/src/fits/psFits.c

    r3264 r3298  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-02-17 19:26:24 $
     9 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-02-22 19:25:52 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14961496                    }
    14971497                    if (! found) {
    1498                         psArrayAdd(columns, columns->nalloc, psMemIncrRefCounter(item));
     1498                        psArrayAdd(columns, columns->nalloc, item);
    14991499                    }
    15001500                }
  • trunk/psLib/src/types/psBitSet.c

    r3264 r3298  
    1111 *  @author Robert DeSonia, MHPCC
    1212 *
    13  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-02-17 19:26:23 $
     13 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-02-22 19:25:52 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    186186        return NULL;
    187187    }
    188 
    189     // make operator all caps
    190     psS32 tempStrLen = strlen(operator);
    191     char* tempStr = psAlloc(tempStrLen+1);
    192 
    193     for (psS32 lcv=0;lcv<tempStrLen;lcv++) {
    194         tempStr[lcv] = (char)toupper(operator[lcv]);
    195     }
    196     tempStr[tempStrLen] = '\0';
    197188
    198189    // parse the operator
     
    206197        op = NOT_OP;
    207198    } else {
    208         psFree(tempStr);
    209199        psFree(outBitSet);
    210200        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     
    213203        return NULL;
    214204    }
    215     psFree(tempStr);
    216205
    217206    if (op != NOT_OP) {
Note: See TracChangeset for help on using the changeset viewer.