1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Cleaned up text/uri-list parsing.

This commit is contained in:
Camilla Berglund 2015-01-27 23:03:12 +01:00
parent f5c9265d1b
commit ac8dba2a80

View File

@ -183,6 +183,7 @@ static void changeWindowState(_GLFWwindow* window, Atom state, int action)
}
// Splits and translates a text/uri-list into separate file paths
// NOTE: This function destroys the provided string
//
static char** parseUriList(char* text, int* count)
{
@ -196,7 +197,7 @@ static char** parseUriList(char* text, int* count)
{
text = NULL;
if (*line == '#')
if (line[0] == '#')
continue;
if (strncmp(line, prefix, strlen(prefix)) == 0)