Corrupt variables using char array

code:

void loop()
{
     
    convertLongitude(Longitude);  
    convertLatitude(Latitude);  
    Serial.println("fLonCur: ");    
    Serial.println(fLonCur);  
    Serial.println("fLatCur: ");    
    Serial.println(fLatCur); 
    cLonCur = dtostrf(fLonCur,1,6,bufferLon);
    cLonCur +='\0';
    cLatCur = dtostrf(fLatCur,1,6,bufferLat);
    cLatCur +='\0';   
    Serial.println("cLatCur: ");    
    Serial.println(cLatCur);  
    Serial.println("cLonCur: ");    
    Serial.println(cLonCur);  
 

    char* sms_text= "<GPS>";
    char* cCommand;
    int iStart=0;
    int iEnd=0;
    for (int i=0; i<10;i++)
     {
       if(sms_text[i]=='<') iStart=i;
       else if (sms_text[i]=='>') iEnd=i;
     }  
    for (int i=iStart+1; i<iEnd;i++)
     {
       cCommand[i]=sms_text[i];
     } 
       Serial.println(iStart); 
       Serial.println(iEnd);  
       Serial.println(cCommand); 
       Serial.println(sms_text);
 
       if (cCommand=="VER")
        {
         Serial.println("text=VER");
        }
       else if (cCommand=="GPS")
        {
         Serial.println("text=GPS");          
        }
       else if (cCommand=="POS")
        {
         Serial.println("text=POS");          
        }
       else  Serial.println("No match...");  

     delay(2000);
}

Serial Monitor Data:

fLonCur:
-38.69
fLatCur:
-12.89
cLatCur:
-12.888442
cLonCur:
-38 O 9
4 = < |d < ro m

No match…


The variable cLonCur should be:
-38.685349
but comes out like garbage:
-38 O 9
4 = < |d < ro m

Any ideas of what’s going on?

cCommand[i]=sms_text[i];

cCommand hasn't been initialised.

Post your code.
All of it.