Changeset 383 for trunk/src/sh_restrict.c
- Timestamp:
- Dec 5, 2011, 10:30:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_restrict.c
r341 r383 107 107 SL_ENTER(_("matches_prefix")); 108 108 109 path_len = sl_strlen(path); 110 pref_len = sl_strlen(prefix); 111 112 if (path_len >= pref_len) 113 { 114 if (0 == strncmp(path, prefix, pref_len)) 115 { 116 SL_RETURN(1, _("matches_prefix")); 109 if (path && prefix) 110 { 111 path_len = sl_strlen(path); 112 pref_len = sl_strlen(prefix); 113 114 if (path_len >= pref_len) 115 { 116 if (0 == strncmp(path, prefix, pref_len)) 117 { 118 SL_RETURN(1, _("matches_prefix")); 119 } 117 120 } 118 121 }
Note:
See TracChangeset
for help on using the changeset viewer.