projects
/
ptask.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
257549f
)
fixed style
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 6 Dec 2013 07:59:29 +0000
(07:59 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 6 Dec 2013 07:59:29 +0000
(07:59 +0000)
src/tw.c
patch
|
blob
|
history
diff --git
a/src/tw.c
b/src/tw.c
index
bad97fc
..
e48ab59
100644
(file)
--- a/
src/tw.c
+++ b/
src/tw.c
@@
-150,7
+150,7
@@
struct task **tw_get_all_tasks(const char *status)
struct json_object *jtasks, *jtask, *json;
struct task **tasks;
char *opts;
struct json_object *jtasks, *jtask, *json;
struct task **tasks;
char *opts;
-
const char *urg;
+ const char *urg;
opts = malloc(strlen("export status:") + strlen(status) + 1);
opts = malloc(strlen("export status:") + strlen(status) + 1);
@@
-199,11
+199,11
@@
struct task **tw_get_all_tasks(const char *status)
tasks[i]->uuid = strdup(json_object_get_string(json));
json = json_object_object_get(jtask, "urgency");
tasks[i]->uuid = strdup(json_object_get_string(json));
json = json_object_object_get(jtask, "urgency");
-
urg = json_object_get_string(json);
-
if (urg)
-
tasks[i]->urgency = strdup(urg);
-
else
-
tasks[i]->urgency = NULL;
+ urg = json_object_get_string(json);
+ if (urg)
+ tasks[i]->urgency = strdup(urg);
+ else
+ tasks[i]->urgency = NULL;
tasks[i]->note = note_get(tasks[i]->uuid);
}
tasks[i]->note = note_get(tasks[i]->uuid);
}