diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-09 23:19:28 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-09 23:19:28 -0800 |
commit | c5f1a9375ccc353684f738e09c77dc9fde3d80e8 (patch) | |
tree | 612f88b7a532fe9af3e238975f85c4cee154b515 | |
parent | 9622e0e3da95d0a01f3c2ae3fe714a4a10a093e8 (diff) |
basic_string::_S_construct NULL not valid
-rw-r--r-- | MobileCydia.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 25b55d7..324da6e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3294,6 +3294,8 @@ class CydiaLogCleaner : } - (Package *) packageWithName:(NSString *)name { + if (name == nil) + return nil; @synchronized (self) { if (static_cast<pkgDepCache *>(cache_) == NULL) return nil; |