diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 07:56:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 07:56:03 +0300 |
commit | f38ad4c66bee4fd28dbfe3fa4662fb6f8eb7d1c5 (patch) | |
tree | 519307199419c9cfe883ba8551a76196e2b918a8 /source/blender/editors/space_file | |
parent | 2d803d3f6d803ab6098410c56048f1df1ba48ee0 (diff) |
Cleanup: replace STREQLEN with STRPREFIX for constant strings
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index b7d47902fe8..d8556711c55 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -579,10 +579,10 @@ void fsmenu_read_bookmarks(struct FSMenu *fsmenu, const char *filename) name[0] = '\0'; while (fgets(line, sizeof(line), fp) != NULL) { /* read a line */ - if (STREQLEN(line, "[Bookmarks]", 11)) { + if (STRPREFIX(line, "[Bookmarks]")) { category = FS_CATEGORY_BOOKMARKS; } - else if (STREQLEN(line, "[Recent]", 8)) { + else if (STRPREFIX(line, "[Recent]")) { category = FS_CATEGORY_RECENT; } else if (line[0] == '!') { |