summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/http_request.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-08 00:17:30 +0300
committeraunsane <aunsane@gmail.com>2018-02-08 00:17:30 +0300
commitc24320bdb770d48d2b7502a25c154ecc7af75c28 (patch)
treec8468496bf5cf7ea3122160a26409e1777e9bb33 /protocols/Steam/src/http_request.h
parenta0905e751e2524f63d2468c2063191143b51785e (diff)
Steam: another attempt to fix #1108
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r--protocols/Steam/src/http_request.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h
index f6fe0d10ab..64849f2983 100644
--- a/protocols/Steam/src/http_request.h
+++ b/protocols/Steam/src/http_request.h
@@ -329,7 +329,9 @@ public:
int GetStatusCode() const
{
- return m_response->resultCode;
+ return m_response
+ ? m_response->resultCode
+ : 0;
}
};