mcabber/src/utils.c
changeset 979 ea939ff047d8
parent 977 5b01de4ac5e1
child 1058 c0d44a9a99bc
equal deleted inserted replaced
978:a58dfdd6d058 979:ea939ff047d8
   381 {
   381 {
   382   int instring = FALSE;
   382   int instring = FALSE;
   383   int escape = FALSE;
   383   int escape = FALSE;
   384   char *p;
   384   char *p;
   385 
   385 
       
   386   if (!s) return;
       
   387 
   386   for (p = s; *p; p++) {
   388   for (p = s; *p; p++) {
   387     if (*p == '"') {
   389     if (*p == '"') {
   388       if (!escape) {
   390       if (!escape) {
   389         instring = !instring;
   391         instring = !instring;
   390         strcpy(p, p+1);
   392         strcpy(p, p+1);