mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Info Panel: Fix uninitialized posn variable
This commit is contained in:
committed by
Carlos R. Mafra
parent
370adc94e7
commit
6d6f9f6ff5
@@ -1209,13 +1209,12 @@ char *getPrettyOSName(void)
|
|||||||
if ((c = *src++) == '\0')
|
if ((c = *src++) == '\0')
|
||||||
break;
|
break;
|
||||||
*dst++ = c;
|
*dst++ = c;
|
||||||
}
|
} else if (c != '"' && c != '\'')
|
||||||
else if (c != '"' && c != '\'')
|
|
||||||
*dst++ = c;
|
*dst++ = c;
|
||||||
}
|
}
|
||||||
*dst = '\0';
|
*dst = '\0';
|
||||||
posn = malloc(strlen(token));
|
posn = wmalloc(strlen(token) + 1);
|
||||||
strncpy(posn, token, strlen(token));
|
strcpy(posn, token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user