Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions libnemo-private/nemo-action.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,12 +1141,12 @@ nemo_action_get_property (GObject *object,
static gchar *
find_token_type (const gchar *str, TokenType *token_type)
{
gchar *ptr = NULL;
gchar *ptr = (gchar *) str;
*token_type = TOKEN_NONE;

ptr = g_strstr_len (str, -1, "%");
while ((ptr = g_strstr_len (ptr, -1, "%")) != NULL) {

if (ptr != NULL) {

if (g_str_has_prefix (ptr, TOKEN_EXEC_FILE_LIST)) {
*token_type = TOKEN_PATH_LIST;
return ptr;
Expand Down Expand Up @@ -1191,6 +1191,7 @@ find_token_type (const gchar *str, TokenType *token_type)
*token_type = TOKEN_XID;
return ptr;
}
ptr++;
}

return NULL;
Expand Down