summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 1303621..a767624 100644
--- a/git.c
+++ b/git.c
@@ -190,7 +190,7 @@ int add_comment(comment *comment, const char *pr_root) {
struct tm tm;
/* Is the comment NULL? */
- if (pr == NULL) {
+ if (comment == NULL) {
log(LOG_ERR, "Comment is NULL.");
return 0;
}