GNOME Bugzilla – Bug 704484
eula: strrchr can return null so check this before continuing
Last modified: 2013-07-19 14:21:34 UTC
When determining the file type make sure that if strrchr returns null we don't pass this to strcmp which will try to dereference it.
Created attachment 249545 [details] [review] eula: strrchr can return null so check this before continuing
Review of attachment 249545 [details] [review]: Hm, couldn't you just use g_strcmp0 ?
Created attachment 249611 [details] [review] eula: replace strcmp with g_strcmp0 for null safety When determining the file type make sure that if strrchr returns null we don't try to dereference it.
Review of attachment 249611 [details] [review]: OK.
master f20092f92f84bbeb18bca4ed9d23b443d6142025 gnome 3-8 f1de180748d2b3a69a69538eb47def37ae415658